wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



get_template_part_{$slug} › Les Actions WordPress

Depuis5.5.0
Dépréciéen/a
do_action( "get_template_part_{$slug}", $slug, $name, $args )
Paramètres: (3)
  • (string) $slug The slug name for the generic template.
    Requis: Oui
  • (string|null) $name The name of the specialized template or null if there is none.
    Requis: Oui
  • (array) $args Additional arguments passed to the template.
    Requis: Oui
Défini(e) dans:
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.





Source

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