Removing Add Media option from WordPress Editor

Removing Add Media option from WordPress Editor

In Many ways many users doesn’t need the “Add Media” option to add image in the wordpress content editor. Those who wants to remove it can do like below to get rid of this.

Add the below code to theme function

function z_remove_media_controls() {     remove_action( 'media_buttons', 'media_buttons' );} add_action('admin_head','z_remove_media_controls');

Leave a comment