add_filter( 'wp_editor_settings', function($settings) { $settings['media_buttons']=FALSE; return $settings; });