Skip to main content
Wordpress

Esconder Wysiwyg WordPress Editor

En functions.php  agrega lo siguiente:

add_action( ‘admin_init’, ‘hide_editor’ );
function hide_editor() {
  // Get the Post ID.
  $post_id = $_GET[‘post’] ? $_GET[‘post’] : $_POST[‘post_ID’] ;
$cats = get_the_category();
  $cat_name = $cats[0]->name;

  // Hide the editor on the page titled ‘Homepage’

  if($post_id == 2){ //2 es el id de la página que quieres esconder
      remove_post_type_support(‘page’, ‘editor’);
  }

}

0 Reviews

There are no reviews yet.