wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



pre_get_block_file_template › Filtr WordPress Hooks

Od5.9.0
Przestarzałyn/a
› apply_filters( 'pre_get_block_file_template', null, $id, $template_type )
Parametry: (3)
  • () block_template Return block template object to short-circuit the default query, or null to allow WP to run its normal queries.
    Wymagane: Tak
  • () id Template unique identifier (example: 'theme_slug//template_slug').
    Wymagane: Tak
  • () template_type Template type. Either 'wp_template' or 'wp_template_part'.
    Wymagane: Tak
Zdefiniowane na:
Codex:

Filters the block template object before the theme file discovery takes place.

Return a non-null value to bypass the WordPress theme file discovery.




Źródło

$block_template = apply_filters( 'pre_get_block_file_template', null, $id, $template_type );