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



use_block_editor_for_post_type ›

Desde5.0.0
Obsoleton/a
apply_filters( 'use_block_editor_for_post_type', true, $post_type )
Parâmetros: (2)
  • (bool) $use_block_editor Whether the post type can be edited or not. Default true.
    Required: Yes
  • (string) $post_type The post type 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_type', true, $post_type );