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



rest_block_hooks_post_types › Hooks de Filtros WordPress

Desde7.0.0
Obsoleton/a
› apply_filters( 'rest_block_hooks_post_types', $content_like_post_types, $this->post_type, $prepared_post )
Parâmetros: (3)
  • () content_like_post_types Array of post type names that support Block Hooks.
    Required: Yes
  • () post_type The current post type being processed.
    Required: Yes
  • () prepared_post The prepared post object.
    Required: Yes
Definido em:
Codex:

Filters which post types should have Block Hooks applied.

Allows themes and plugins to add or remove post types that should have Block Hooks functionality enabled in the REST API.




Fonte

$content_like_post_types = apply_filters( 'rest_block_hooks_post_types', $content_like_post_types, $this->post_type, $prepared_post );