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



get_template_part_{$slug} › WordPress Action Hooks

Seit5.5.0
Veraltetn/v
do_action( "get_template_part_{$slug}", $slug, $name, $args )
Parameter: (3)
  • (string) $slug The slug name for the generic template.
    Erforderlich: Ja
  • (string|null) $name The name of the specialized template or null if there is none.
    Erforderlich: Ja
  • (array) $args Additional arguments passed to the 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, $args );