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



get_template_part › WordPress Action Hooks

Seit5.5.0
Veraltetn/v
do_action( 'get_template_part', $slug, $name, $templates, $args )
Parameter: (4)
  • (string) $slug The slug name for the generic template.
    Erforderlich: Ja
  • (string) $name The name of the specialized template or an empty string if there is none.
    Erforderlich: Ja
  • (string[]) $templates Array of template files to search for, in order.
    Erforderlich: Ja
  • (array) $args Additional arguments passed to the template.
    Erforderlich: Ja
Definiert in:
Codex:

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





Quellcode

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