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



get_template_part › WordPress Action Hooks

Since5.5.0
Deprecatedn/a
do_action( 'get_template_part', $slug, $name, $templates, $args )
Parameters: (4)
  • (string) $slug The slug name for the generic template.
    Required: Yes
  • (string) $name The name of the specialized template or an empty string if there is none.
    Required: Yes
  • (string[]) $templates Array of template files to search for, in order.
    Required: Yes
  • (array) $args Additional arguments passed to the template.
    Required: Yes
Defined at:
Codex:

Fires before an attempt is made to locate and load a template part.





Source

do_action( 'get_template_part', $slug, $name, $templates, $args );