post_type ) { return; } // Disable the block editor for this post type. add_filter( 'use_block_editor_for_post_type', '__return_false' ); // Remove the "Add Media" button. remove_action( 'media_buttons', 'media_buttons' ); // Drop the TinyMCE/Quicktags toolbars entirely — a plain textarea suffices. add_filter( 'wp_editor_settings', static function ( $settings, $editor_id ) { if ( 'content' === $editor_id ) { $settings['tinymce'] = false; $settings['quicktags'] = false; } return $settings; }, 10, 2 ); } );