A
A
Arthur2016-02-19 18:41:52
WordPress
Arthur, 2016-02-19 18:41:52

How to remove the "Add media" button in Wordpress?

Subject. I understand that it is possible to disable it through CSS, but I would like it not to be displayed at all.
www.prntscr.com/a5bxws

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Arthur, 2016-02-19
@r3st1k25

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

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question