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



get_template_part_{$slug} › Hooks de Ações WordPress

Desde5.5.0
Obsoleton/a
do_action( "get_template_part_{$slug}", $slug, $name, $args )
Parâmetros: (3)
  • (string) $slug The slug name for the generic template.
    Required: Yes
  • (string|null) $name The name of the specialized template or null if there is none.
    Required: Yes
  • (array) $args Additional arguments passed to the template.
    Required: Yes
Definido em:
Codex:

Fires before the specified template part file is loaded.

The dynamic portion of the hook name, $slug, refers to the slug name for the generic template part.





Fonte

do_action( "get_template_part_{$slug}", $slug, $name, $args );