//disable tinyMCE //add_filter( 'user_can_richedit' , '__return_false', 50 ); add_filter('user_can_richedit', function( $default ){ global $post; if( $post->post_type === 'page') return false; return $default; });