wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



get_template_part_{$slug} › Działania WordPress Hooks

Od5.5.0
Przestarzałyn/a
› do_action( "get_template_part_{$slug}", $slug, $name, $args )
Parametry: (3)
  • () slug The slug name for the generic template.
    Wymagane: Tak
  • () name The name of the specialized template or null if there is none.
    Wymagane: Tak
  • () args Additional arguments passed to the template.
    Wymagane: Tak
Zdefiniowane na:
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.




Źródło

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