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:

Description

Return 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, user_can_edit_post_date, user_can_edit_post, set_post_type, user_can_edit_post_comments

Top Google Results

User discussions

wpseek mobile