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



get_template_part › Działania WordPress Hooks

Od5.5.0
Przestarzałyn/a
do_action( 'get_template_part', $slug, $name, $templates, $args )
Parametry: (4)
  • (string) $slug The slug name for the generic template.
    Wymagane: Tak
  • (string) $name The name of the specialized template or an empty string if there is none.
    Wymagane: Tak
  • (string[]) $templates Array of template files to search for, in order.
    Wymagane: Tak
  • (array) $args Additional arguments passed to the template.
    Wymagane: Tak
Zdefiniowane na:
Codex:

Fires before an attempt is made to locate and load a template part.





Źródło

do_action( 'get_template_part', $slug, $name, $templates, $args );