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
- Breadcrumbs with Custom Post Types?
- Get the most popular terms for a custom post type
- Custom taxonomy archive page not working
- Why do my custom post types show up in the dashboard, but not on my site?
- Get the next event using date_query
- Export Custom Post Type posts with all Custom Fields and Custom Texonomy associated with it
- How to Combine Two Custom Post Types into Single Permalink Structure
- Ajax form filter post by custom fields [closed]
- An empty Custom Post Type Archive page returns 404 in WP 3.1
- How to rank custom post type from score points
- Pagination on category page with custom post types
- Custom Post Type Taxonomy Filters
- Create a page that will be used to create a custom post type
- get_post_meta not working on publishing
- Getting Custom Post Type Meta on Publish
- Filter CPT posts by one or more categories
- WP Query with categories only shows one post and ignores the category
- Send notifications to custom post author when custom post is edited
- Searching Custom Post Types
- Custom Post Conditional for Parent & Child Single.php?
- Different Category system needed for the Custom Post Type
- How do you get the full size url of an attachment image
- query_posts adding extra code to homepage
- Featured Image field not appearing in Custom post type
- how to remove pages loading with the archive templates
- Meta data (Tags and Categories) for Custom Posts not showing.
- How to display custom field value on page?
- Update post if exist from PHP
- How to rewrite custom taxonomy term archive to use THE SAME SLUG/front as CPT
- orderby parameter not working in custom query
- Which is the neatest way to have homepage articles and a blog?
- either single-{custom}.php 404’s OR /taxonomy/ 404’s – custom post type and taxonomy permalinks
- Custom loop request based on custom field
- Content in WP Editor displayed below CPT shortcode [duplicate]
- Do I need a loop to display an object that attached to posts?
- Remove filter and view options from custom post type edit screen
- Select custom post type do display from page editor
- update custom taxonomy custom fields
- Filter taxonomy by CPT
- How to submit custom post type front end form when a user buy specific product
- Get Custom Post types data from the API
- How to group custom posts in admin menu based off taxonomy/postmeta
- publish_post action callback not executed, why?
- Parent and child categories with their id in drop_down in CPT
- Templating advice sub posts of a CTP
- Enable shortcodes on custom post type
- getting a blank login page :( any way I can fix this without having to do a clean install?
- Add a image to a post published on a CPT from the front-end
- Pulling in Related Posts based on Post Type array
- Custom Search not working
- Custom post type post taxonomies
- pre_get_posts action doesn’t work
- Bulk remove category from custom post type?
- Page template anomaly
- Structure of custom post type / taxonomy?
- Issue On Listing Woocommerce Parent Tag List
- Creating post custom field text area
- Filter page ID outside the loop and order