Aurangajeb

Hide media button from backend classic editor

Jul 27th, 2021
980
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // helpful gist https://gist.github.com/mbijon/7311081
  2. function remove_media_buttons() {
  3.     global $current_screen;
  4.     remove_action( 'media_buttons', 'media_buttons' );
  5. }
  6. add_action('admin_head','remove_media_buttons');
RAW Paste Data