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)
  • () slug The slug name for the generic template.
    Richiesto: Sì
  • () name The name of the specialized template or null if there is none.
    Richiesto: Sì
  • () args Additional arguments passed to the template.
    Richiesto: Sì
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 );