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



get_template_part ›

Desde5.2.0
Obsoleton/a
do_action( 'get_template_part', $slug, $name, $templates )
Parâmetros: (3)
  • (string) $slug The slug name for the generic template.
    Required: Yes
  • (string) $name The name of the specialized template.
    Required: Yes
  • (string[]) $templates Array of template files to search for, in order.
    Required: Yes
Definido em:
Codex:

Fires before a template part is loaded.





Fonte

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