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



rest_block_hooks_post_types › WordPress Filter Hooks

Seit7.0.0
Veraltetn/v
apply_filters( 'rest_block_hooks_post_types', $content_like_post_types, $this->post_type, $prepared_post )
Parameter: (3)
  • () content_like_post_types Array of post type names that support Block Hooks.
    Erforderlich: Ja
  • () post_type The current post type being processed.
    Erforderlich: Ja
  • () prepared_post The prepared post object.
    Erforderlich: Ja
Definiert in:
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.




Quellcode

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