apply_filters( 'use_block_editor_for_post_type', bool $use_block_editor, string $post_type )
Filters whether a post is able to be edited in the block editor.
Parameters
- $use_block_editor
-
(bool) Whether the post type can be edited or not. Default true.
- $post_type
-
(string) The post type being checked.
Source
Changelog
Version | Description |
---|---|
5.0.0 | Introduced. |
© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/use_block_editor_for_post_type