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



get_block_template › WordPress Filter Hooks

Seit5.9.0
Veraltetn/v
apply_filters( 'get_block_template', $block_template, $id, $template_type )
Parameter: (3)
  • (WP_Block_Template|null) $block_template The found block template, or null if there isn't one.
    Erforderlich: Ja
  • (string) $id Template unique identifier (example: 'theme_slug//template_slug').
    Erforderlich: Ja
  • (string) $template_type Template type. Either 'wp_template' or 'wp_template_part'.
    Erforderlich: Ja
Definiert in:
Codex:

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





Quellcode

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