remove add media button wordpress editor code example
Example: remove add media button wordpress editor
add_filter( 'wp_editor_settings', function($settings) {
$settings['media_buttons']=FALSE;
return $settings;
});
add_filter( 'wp_editor_settings', function($settings) {
$settings['media_buttons']=FALSE;
return $settings;
});