Skip to content

Instantly share code, notes, and snippets.

@mjot
Forked from jfcode/Hide Add Media Button
Last active November 17, 2016 10:06
Show Gist options
  • Save mjot/4510f6c72b3645d6a51bc76a436361f1 to your computer and use it in GitHub Desktop.
Save mjot/4510f6c72b3645d6a51bc76a436361f1 to your computer and use it in GitHub Desktop.
Hide WYSIWYG - Add Media Button
/**
* Remove Add Media Button from the WYSIWYG editor
*/
function RemoveAddMediaButtons(){
remove_action( 'media_buttons', 'media_buttons' );
}
add_action('admin_head', 'RemoveAddMediaButtons');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment