use_block_editor_for_post_type


use_block_editor_for_post_type ( $post_type )

Parameters:
  • (string) post_type The post type.
Returns:
  • (bool) Whether the post type can be edited with the block editor.
Defined at:
Change Log:
  • 6: .

Description

Returns whether a post type is compatible with the block editor.The block editor depends on the REST API, and if the post type is not shown in the REST API, then it won't work with the block editor.

Related Functions

use_block_editor_for_post, _disable_block_editor_for_navigation_post_type, get_block_editor_theme_styles, user_can_edit_post_date, _enable_content_editor_for_navigation_post_type

Top Google Results

User discussions

wpseek mobile