wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema



get_template_part › Hooks de Ações WordPress

Desde5.5.0
Obsoleton/a
do_action( 'get_template_part', $slug, $name, $templates, $args )
Parâmetros: (4)
  • (string) $slug The slug name for the generic template.
    Required: Yes
  • (string) $name The name of the specialized template or an empty string if there is none.
    Required: Yes
  • (string[]) $templates Array of template files to search for, in order.
    Required: Yes
  • (array) $args Additional arguments passed to the template.
    Required: Yes
Definido em:
Codex:

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





Fonte

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