W3cubDocs

/WordPress

apply_filters( 'use_block_editor_for_post', bool $use_block_editor, WP_Post $post )

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

Description

Parameters

$use_block_editor

(bool) Whether the post can be edited or not.

$post

(WP_Post) The post being checked.

Source

File: wp-admin/includes/post.php

View on Trac

Changelog

Version Description
5.0.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/use_block_editor_for_post