Wordpress - Hide "Add media", HTML editor from TinyMCE
It should be 'media_buttons' => FALSE
.
array (
'textarea_rows' => 5,
'media_buttons' => FALSE,
'teeny' => TRUE,
'tinymce' => TRUE
)
… creates this editor:
If you want to hide/disable/prevent/remove the "Add Media"-button in 2018 you can do the following (in essence):
// probably in your functions.php
remove_action('media_buttons', 'media_buttons');
In WordPress ver 4.9 it does not seem media buttons can be turned off using the 'tiny_mce_before_init' hook.
Instead I was able to remove this using 'wp_editor_settings', like so:
add_filter( 'wp_editor_settings', function($settings) {
$settings['media_buttons']=FALSE;
return $settings;
});