Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



use_block_editor_for_post ›

Seit5.0.0
Veraltetn/v
apply_filters( 'use_block_editor_for_post', $use_block_editor, $post )
Parameter: (2)
  • (bool) $use_block_editor Whether the post can be edited or not.
    Erforderlich: Ja
  • (WP_Post) $post The post being checked.
    Erforderlich: Ja
Definiert in:
Codex:

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





Quellcode

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