Eliminar el botón Agregar medios editor de WordPress

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