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



get_template_part › WordPress Action Hooks

Da5.5.0
Deprecaton/a
do_action( 'get_template_part', $slug, $name, $templates, $args )
Parametri: (4)
  • (string) $slug The slug name for the generic template.
    Richiesto:
  • (string) $name The name of the specialized template or an empty string if there is none.
    Richiesto:
  • (string[]) $templates Array of template files to search for, in order.
    Richiesto:
  • (array) $args Additional arguments passed to the template.
    Richiesto:
Definito a:
Codex:

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





Sorgenti

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