WordPress Hooks Explorer

Listing all hooks extracted WordPress Core


Details about get_template_part

Back to home

Files

Filename Hook Type Line Number PHP Doc
wp-includes/general-template.php do_action 202 /**
* Fires before an attempt is made to locate and load a template part.
*
* @since 5.2.0
* @since 5.5.0 The `$args` parameter was added.
*
* @param string $slug The slug name for the generic template.
* @param string $name The name of the specialized template.
* @param string[] $templates Array of template files to search for, in order.
* @param array $args Additional arguments passed to the template.
*/

Hook Parameters

Parameter Type Name Description
string $slug The slug name for the generic template.
string|null $name The name of the specialized template.
array $args Additional arguments passed to the template.