wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



rest_block_hooks_post_types › WordPress Filter Hooks

Da7.0.0
Deprecaton/a
› apply_filters( 'rest_block_hooks_post_types', $content_like_post_types, $this->post_type, $prepared_post )
Parametri: (3)
  • () content_like_post_types Array of post type names that support Block Hooks.
    Richiesto: Sì
  • () post_type The current post type being processed.
    Richiesto: Sì
  • () prepared_post The prepared post object.
    Richiesto: Sì
Definito a:
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.




Sorgenti

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