Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



get_template_part_{$slug} ›

Seit3.0.0
Veraltetn/v
do_action( "get_template_part_{$slug}", $slug, $name )
Parameter: (2)
  • (string) $slug The slug name for the generic template.
    Erforderlich: Ja
  • (string|null) $name The name of the specialized template.
    Erforderlich: Ja
Definiert in:
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.





Quellcode

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