Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $screen = get_current_screen();
- if ( ! $screen->is_block_editor() && in_array( $screen->post_type, ['tools', 'brand', 'company'], true ) )
- {
- add_filter( 'tiny_mce_before_init', function( $settings ) {
- $settings['height'] = '120';
- $settings['autoresize_max_height'] = '120';
- return $settings;
- } );
- }
- endif;
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement