On this page
do_action( "get_template_part_{$slug}", string $slug, string|null $name, array $args )
Fires before the specified template part file is loaded.
Description
The dynamic portion of the hook name, $slug, refers to the slug name for the generic template part.
Parameters
$slugstring-
The slug name for the generic template.
$namestring|null-
The name of the specialized template.
$argsarray-
Additional arguments passed to the template.
Source
File: wp-includes/general-template.php. View all references
do_action( "get_template_part_{$slug}", $slug, $name, $args );
Related
Used By
| Used By | Description |
|---|---|
| get_template_part() wp-includes/general-template.php | Loads a template part into a template. |
Changelog
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/get_template_part_slug