_enable_content_editor_for_navigation_post_type() – This callback enables content editor for wp_navigation type posts.

You appear to be a bot. Output may be restricted

Description

This callback enables content editor for wp_navigation type posts.

We need to enable it back because we disable it to hide the content editor for wp_navigation type posts.

Usage

_enable_content_editor_for_navigation_post_type( $post );

Parameters

$post
( WP_Post ) required – An instance of WP_Post class.

Returns

void

Source

File name: wordpress/wp-admin/includes/post.php
Lines:

1 to 8 of 8
function _enable_content_editor_for_navigation_post_type( $post ) {
  $post_type = get_post_type( $post );
  if ( 'wp_navigation' !== $post_type ) {
    return;
  }

  add_post_type_support( $post_type, 'editor' );
}
 

 View on GitHub View on Trac