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 get all taxonomies of a post type?
- Permalinks: custom post type -> custom taxonomy -> post
- Efficient Taxonomy Intersection
- How to create a wp_query that contains both meta_query and tax_query
- Display custom post type and custom fields within a Bootstrap Carousel
- Extend walker class with custom post types [closed]
- Notice: map_meta_cap was called incorrectly
- Archive page…limiting posts per page
- How to have a custom URL structure for a custom post type?
- Include custom post type in “all posts”
- Custom Select Query with Custom Post Types
- Category and post tag archives do not include posts from custom post type
- Displaying different custom post types under one admin menu
- Can I change the slug of my archive page on a Custom post type?
- Custom Taxonomy – Tags Metabox is showing instead of Categories
- How to set up htaccess to redirect a particular post type or subdirectory to HTTPS?
- How Can I Set the Post Author of a Post I Just Created With PHP?
- Cherry framework adding custom post type
- Include custom post type single template, but respect theme override of template if it exists
- How to have custom post type /example/ and then posts /example/posts.html
- Cannot add custom field to “orderby” parameter in Rest API
- Not Able to Get Custom Post Type Gallery Images URL
- Form action/link to render a plugin in WordPress front-end
- Building a Treatments Page, What Do I Use?
- Multiple Frontend Filters Using Advanced Custom Fields
- How do I programmatically create new posts of a custom post type over the XML-RPC API?
- Migrating a taxonomy’s tags to the native category
- How to display Related Posts based on number of taxonomy terms matched
- How to solve this custom post type goes to 404 page?
- Query & the_content() is showing in the header
- Custom meta Title for custom post type archive from page
- How do I assign a block template (.html) to a custom post type?
- How do I add html content to custom post type Posts using php?
- 4 posts per page from single category
- Returning an image url from its attachment ID using a custom post type plugin
- Can I set the post_type query_var as a link is clicked?
- handling templates and widgets for custom content types
- Put featured image under post title in admin area
- Add liked posts to user account
- Dropdown with CPT terms redirects to 404
- How to show link to product in custom fields?
- Custom post type structure + permalink structure
- How do I use URL to fetch all posts of a particular custom post type?
- The most recent post of custom taxonomy
- Display a Custom Post Type within another with hierarchically slug
- Can’t save custom post type fields
- Problems with the WP_Query query for a Custom post type
- Duplicate “Pages” Item in Admin Menu
- Customize category URL
- Display custom posts in checkbox list
- Change display wp post type to wp custom post type
- Display posts order by custom post in a dropdown menu
- Custom post type / Filter by letter
- How do I assign the post parent?
- Page Attributes Panel (Parent option) is not showing on a custom post type
- Store custom post type with JSON content
- Display page and custom post title inside shortcode
- How to list custom taxonomy terms without the hyperlinks?