wpseek.com
A WordPress-centric search engine for devs and theme authors



get_template_part_{$slug} › WordPress Action Hooks

Since5.5.0
Deprecatedn/a
do_action( "get_template_part_{$slug}", $slug, $name, $args )
Parameters: (3)
  • () slug The slug name for the generic template.
    Required: Yes
  • () name The name of the specialized template or null if there is none.
    Required: Yes
  • () args Additional arguments passed to the template.
    Required: Yes
Defined at:
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 );