wpseek.com
A WordPress-centric search engine for devs and theme authors



rest_block_hooks_post_types › WordPress Filter Hooks

Since7.0.0
Deprecatedn/a
apply_filters( 'rest_block_hooks_post_types', $content_like_post_types, $this->post_type, $prepared_post )
Parameters: (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
Defined at:
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.




Source

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