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



get_template_part_{$slug} › WordPress Action Hooks

Da5.5.0
Deprecaton/a
do_action( "get_template_part_{$slug}", $slug, $name, $args )
Parametri: (3)
  • (string) $slug The slug name for the generic template.
    Richiesto:
  • (string|null) $name The name of the specialized template or null if there is none.
    Richiesto:
  • (array) $args Additional arguments passed to the template.
    Richiesto:
Definito a:
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.





Sorgenti

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