wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



rest_block_hooks_post_types › Filtr WordPress Hooks

Od7.0.0
Przestarzałyn/a
› apply_filters( 'rest_block_hooks_post_types', $content_like_post_types, $this->post_type, $prepared_post )
Parametry: (3)
  • () content_like_post_types Array of post type names that support Block Hooks.
    Wymagane: Tak
  • () post_type The current post type being processed.
    Wymagane: Tak
  • () prepared_post The prepared post object.
    Wymagane: Tak
Zdefiniowane na:
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.




Źródło

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