_disable_content_editor_for_navigation_post_type


_disable_content_editor_for_navigation_post_type ( $post )

Access:
  • private
Parameters:
  • (WP_Post) post An instance of WP_Post class.
Defined at:

Description

This callback disables the content editor for wp_navigation type posts.Content editor cannot handle wp_navigation type posts correctly. We cannot disable the "editor" feature in the wp_navigation's CPT definition because it disables the ability to save navigation blocks via REST API.

Related Functions

_enable_content_editor_for_navigation_post_type, _disable_block_editor_for_navigation_post_type, use_block_editor_for_post_type, _wp_migrate_menu_to_navigation_post, use_block_editor_for_post

Top Google Results

User discussions

wpseek mobile