No need to reinvent the wheel – put your editor
support back and tweak the settings:
function wpse_199918_wp_editor_settings( $settings, $editor_id ) {
if ( $editor_id === 'content' && get_current_screen()->post_type === 'custom_post_type' ) {
$settings['tinymce'] = false;
$settings['quicktags'] = false;
$settings['media_buttons'] = false;
}
return $settings;
}
add_filter( 'wp_editor_settings', 'wpse_199918_wp_editor_settings', 10, 2 );
Related Posts:
- Handling front-end file uploads, considering safety and ease of use
- Hide “Add media”, HTML editor from TinyMCE
- Get Post ID by Content
- Numbering sections and block-level elements in wpautop(); WordPress as CMS for long-form writing;
- Sanitizing post content for use in an email
- Add Capabilities to Custom Post Type after it has been created [duplicate]
- How to force Authentication on REST API for Password protected page using custom table and fetch() without Plugin
- How do I create new content pages for my Custom Post Type?
- Using multiple instances of wp_editor in Custom Post Type admin area
- Excluding post type from WordPress link builder
- Jetpack infinite scroll render – make different depending on post type?
- What is the impact if i ignore title and content in my custom post types CPT?
- WordPress theme options vs custom post types
- Add TinyMCE to CPT metaboxes in 3.1?
- Multiple TinyMCE editors in dynamically generated textareas
- Restrict custom post type from appearing with ?post_types=
- Best way to save horoscope data
- Visual editor issue by having multiple tiny mce editors in a CPT
- Show image gallery from a custom field
- How to use TinyMCE Editor for one of my custom post meta field?
- TinyMCE style formats for different post types
- How can you use one database with multisite
- P̶l̶a̶c̶e̶h̶o̶l̶d̶e̶r̶ *Default* content in Custom Post Type TinyMCE editor
- What functions does WordPress use for filtering / sanitizing comments?
- How can I set the height of the classic editor per post-type?
- data-type=”” … needed post tags stripped of characters
- Custom post type editor uses old tinyMCE
- get parent content inside child posts
- Adding Template Post Content
- Adding custom post formatting options in custom post types
- How should I structure complex content hierarchies?
- Sanitaizing Select Optin For Custom Post Type Metabox in WP
- How to save TinyMCE fields on WordPress custom post type?
- WordPress general content best pratices
- php dynamic content inside shortcode
- How might I change the destination of a link?
- Delete all custom posts then upload a new CSV of events
- check_admin_referer not working in custom meta box for custom post type
- How to use TOC with ACF?
- Expandable WordPress content (text) inside a post
- Multiple Block Quotes without using HTML
- Issue displaying multiple TinyMCE editors with WPAlchemy
- How to show metabox in custom php menu page
- CPT’s with landing page instead of archive – Url Rewrite?
- Template for all categories of a custom post type?
- Include related custom fields from one post type in another post type’s JSON feed
- How to update post meta on uploaded image from a custom form?
- How to change permalink to include custom post type
- Add Custom Post Type of specific Custom Taxonomy to regularly blog loop
- Is there a way to establish parent/child relationship in WP menu links exclusively?
- how to determine we are in add new custom post type or edit custom post type
- posttype/taxonomy/term archive page 404 error
- How to add attributes to taxonomies that may be different from post to post?
- Display taxonomy terms, child terms and posts in a template
- Custom filter function not working with Custom post type
- Removing Custom Permalink Structure for Custom Post Type
- Custom post type, permalinks, taxonomies and blog posts
- Pages are not saving due to custom post type
- How to get all tags of a custom post type by id
- Fixed values for same post translations
- How to run filter only on custom post type edit screen
- How to import files to individual posts of a custom type
- How to give all CPT a folder automatically based on their slug
- How to group posts and get a mixed posts and groups view?
- Custom post type permalink tag 404
- How to Add multiple instance of meta box to custom post type
- How to make front end form only accept certain values
- How to show featured image block in custom post type for Author?
- comment_form() not showing on custom post type
- WordPress Custom Post Type is not working properly
- How to get list of taxonomy slugs ordered parents>childs?
- Custom post type permalink returns 404
- Rewrite rule for Custom Post Type Page as a parent
- Associate multiple users to custom post type
- Custom Post Type by Taxonomy
- Add custom post type drafts to RSS feed
- Multiple post types
- Deleting taxonomy terms and relationships on a custom post_type when a user is deleted
- Admin Custom Meta Box – Pull Last 5 Posts from Custom Post Type
- How to define which register_post_status goes to which register_post_type?
- Custom post type / taxonomy rewrite archive page 2 gives 404
- Using a custom post type for an RSS feed only
- Foreach inside shortcode not working as planned
- Added Custom Post Type and the View Option Doesn’t Work
- remove base slug from hierarchical custom post type
- Edit Custom Post Type on Custom Admin Page instead Post Admin
- Is it possible to have a custom post type with feed but without the archive?
- Use custom walker to add taxonomy terms to main nav menu
- Filter Posts from the Main Query
- frontend image post uploader
- Custom Post Type URL Change – (portfolio using portfolio categories) [duplicate]
- Post format alternative?
- Remotely search WordPress sites using xml-rpc
- Use the same date-based permalink structure for all post types
- WP_Query orderby and tax_query
- Rewrite Endpoints and CPTs – How to use in a plugin
- Permalink structure with custom taxonomies and custom post type like /parent-tax/child-tax/custom-post-type-name (with no base name)
- How to assign permissions for a CPT to a user
- browse by category and tags?
- permalink /category/post-name with custom post type and taxonomy