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



get_block_template › WordPress Filter Hooks

Da5.9.0
Deprecaton/a
apply_filters( 'get_block_template', $block_template, $id, $template_type )
Parametri: (3)
  • (WP_Block_Template|null) $block_template The found block template, or null if there isn't one.
    Richiesto:
  • (string) $id Template unique identifier (example: 'theme_slug//template_slug').
    Richiesto:
  • (string) $template_type Template type. Either 'wp_template' or 'wp_template_part'.
    Richiesto:
Definito a:
Codex:

Filters the queried block template object after it's been fetched.





Sorgenti

return apply_filters( 'get_block_template', $block_template, $id, $template_type );