Uma área de pesquisa sobre o WordPress para devs e autores do tema



use_block_editor_for_post ›

Desde5.0.0
Obsoleton/a
apply_filters( 'use_block_editor_for_post', $use_block_editor, $post )
Parâmetros: (2)
  • (bool) $use_block_editor Whether the post can be edited or not.
    Required: Yes
  • (WP_Post) $post The post being checked.
    Required: Yes
Definido em:
Codex:

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





Fonte

return apply_filters( 'use_block_editor_for_post', $use_block_editor, $post );