use_block_editor_for_post WordPress Filter Hook
The use_block_editor_for_post Wordpress hook allows you to programmatically determine whether the block editor should be used for a given post. This can be useful for making sure that certain content is always edited in the classic editor, or for conditionally displaying different editor interfaces based on the post type or other factors.
apply_filters( 'use_block_editor_for_post', bool $use_block_editor , WP_Post $post ) #
Filters whether a post is able to be edited in the block editor.
Parameters
- $use_block_editor
(bool)Whether the post can be edited or not.
- $post
(WP_Post)The post being checked.
Source
Changelog
Version | Description |
---|---|
5.0.0 | Introduced. |