i would like to remove the button via css or hook, thanks for your help!!

enter image description here

  • found it by myself - just paste the code snippet in your function.php add_action('admin_head', function() { if (!current_user_can('install_plugins')) { ?> <style type="text/css"> .edit-attachment-frame .attachment-media-view .attachment-actions { display: none !important; } <style> <?php } });
    – Lothar
    Feb 21 at 9:09


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.