pablo-sg-pacheco
7/4/2016 - 9:00 PM

Removes tinymce editor from specific pages

Removes tinymce editor from specific pages

<?php

// removes rich text editor for certain pages
add_action( 'add_meta_boxes', function(){ 
	if(get_the_ID() === 14) {
        remove_post_type_support( 'page', 'editor' );
    }
});