One way is to adjust the TinyMCE settings:
add_filter( 'tiny_mce_before_init', function( $settings ) {
$settings['height'] = '120';
$settings['autoresize_max_height'] = '120';
return $settings;
} );
and e.g. restrict further on post types and !block editor with get_current_screen().
Example:
add_filter( 'tiny_mce_before_init', function( $settings ) {
$screen = get_current_screen();
if ( $screen->is_block_editor() ) {
return $settings;
}
if ( ! in_array( $screen->post_type, ['tools', 'brand', 'company'], true ) ) {
return $settings;
}
$settings['height'] = '120';
$settings['autoresize_max_height'] = '120';
return $settings;
} );
Related Posts:
- Hide “Add media”, HTML editor from TinyMCE
- Numbering sections and block-level elements in wpautop(); WordPress as CMS for long-form writing;
- Remove tinyMCE from admin and replace with textarea
- Using multiple instances of wp_editor in Custom Post Type admin area
- Excluding post type from WordPress link builder
- Add TinyMCE to CPT metaboxes in 3.1?
- Multiple TinyMCE editors in dynamically generated textareas
- 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
- P̶l̶a̶c̶e̶h̶o̶l̶d̶e̶r̶ *Default* content in Custom Post Type TinyMCE editor
- Custom post type editor uses old tinyMCE
- Adding custom post formatting options in custom post types
- How to save TinyMCE fields on WordPress custom post type?
- Multiple Block Quotes without using HTML
- Issue displaying multiple TinyMCE editors with WPAlchemy
- Show fields based on taxonomy selection in editor
- Permalinks: custom structure for taxonomy – tags?
- Can NOT search my custom post type?
- Custom Post Meta from custom metaboxes is randomly being deleted
- Why won’t this jQuery code work?
- Custom post_type search pages
- How to get all Custom Post Type Filtered by one Specific Taxonomy Term
- A Collection of Custom Post Types Displayed In a Submenu
- writing posts in indian regional language (Punjabi)
- Why are previous_post_link/next_post_link skipping some posts?
- Gravity forms how to display list of submitters on the post submitted page [closed]
- Template for custom post type when taxonomy is in the URL
- Why WordPress is picking archive.php instead of page.php?
- Custom Post Type posts, conflict with posts after add_rewrite_rule to top
- Get data from PHP to JavaScript to set position of each post on front page
- Child theme blocks post from publishing [closed]
- Targeting child pages of custom post types using function?
- Query custom post types & Taxonomies and list them in a table on a page
- How should i sort “Last Update” Custom Column?
- How to query custom post type by two terms?
- Make a page an archive of a custom post type
- add custom tags for custom post type in wordpress
- Modify a plugin function output from another plugin
- Redirect to URL if x number of days passed
- Filter search posts by post meta?
- Yelp-style geographic directory plugin?
- Modifying search results based on post_type
- WordPress general content best pratices
- Is it a connection or relationship between 2 custom post types?
- Stop displaying Permalink
- i want to send email to user when the custom taxonomy is changed
- How to apply multiple rewrite_rule to a single custom post type url?
- Custom post type template – add banner under heading
- Enforcing a rigid reusable template structure for similar posts?
- Unable to gather Image URL from Custom Post Type’s; Custom Meta Field
- How can i redirect click to new admin page not to edit screen in post table
- Custom post type single page returning 404 error when sharing archive url with custom taxonomy
- How to get current post type?
- How to convert Post Object Custom Field into Tags
- Shortcode and get_template_part
- Custom Post Type single post type shown in theme single.php
- Custom post pagination not working
- Two and more diffrent custom page type in one permalink
- save_post affect creation and deletion
- how to allow subscriber to add/edit/delete custom post type
- Page as parent for CPT and other pages
- Set a static page as a user profile page?
- Why get_posts() returns empty array while I am trying to get posts from some specific taxonomies and work properly with others?
- Change the url of a custom post type to include taxonomy
- How to display all custom fields associated with a post type – IN THE ADMIN AREA?
- Different taxonomy.php for different custom post types
- How to keep a CPT stick to specific position?
- Meta box not saving
- Custom post type issue
- How to query posts by meta keys AND under specific category?
- Shortcode display CPT Query only showing 1 post?
- Default taxonomy ‘post_tag’ added to CPT managing by custom role : nothing in the metabox
- Query stopped working
- How to show a custom taxonomy using a custom template
- Custom post types & Thumbnails
- Strange behaviour using 3.8.1
- Setting a custom $query->query_vars[‘meta_key’] breaks the WordPress menu
- Filtering in admin broken for custom post type in 3.8.1?
- Get Registered Custom Post Type to get All Custom Taxonomies
- Repeatable Custom Field for Media Upload
- how to show perticular category posts in custome page
- Change position of Post Formats box?
- How to store datetime from custom meta box so that it can be sorted by
- Custom Post Types and 404 Pages
- Add HTML before a specific div?
- Bulk update custom post types
- Front end post or photo or both
- Is there any way of not using my_init_method in the following code (that creates a custom post type)?
- Display ONLY ONE $term (Out of 4 terms) from a Custom Taxonomy and CPT
- Adding a custom field after post title (ex.Example Title [30 Second Read])
- WordPress custom field sorting, weird behavior: the latest post is at the end
- Limit taxonomy terms added to a custom post type
- I want to understand plugin implementation of custom posts / taxonomies / metaboxes
- Custom slugs with dates & IDs on Custom Post Type
- Quering a post object based on another related post object
- Custom Post Type Pagination Showing 404 On archive pages
- Display category name and title of last post (in custom post type)
- Custom PHP Template in Twenty Twenty-Four