wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



rest_block_hooks_post_types › Les Filtres WordPress

Depuis7.0.0
Dépréciéen/a
› apply_filters( 'rest_block_hooks_post_types', $content_like_post_types, $this->post_type, $prepared_post )
Paramètres: (3)
  • () content_like_post_types Array of post type names that support Block Hooks.
    Requis: Oui
  • () post_type The current post type being processed.
    Requis: Oui
  • () prepared_post The prepared post object.
    Requis: Oui
Défini(e) dans:
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 );