apply_filters( ‘use_block_editor_for_post_type’, bool $use_block_editor, string $post_type )

In this article

Filters whether a post is able to be edited in the block editor.

Parameters

$use_block_editorbool
Whether the post type can be edited or not. Default true.
$post_typestring
The post type being checked.

Source

return apply_filters( 'use_block_editor_for_post_type', true, $post_type );

Changelog

VersionDescription
5.0.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.