do_action( "get_template_part_{$slug}", string $slug , string $name )
Fires before the specified template part file is loaded.
Package
Description Description
The dynamic portion of the hook name, $slug, refers to the slug name for the generic template part.
Parameters Parameters
- $slug
(string) The slug name for the generic template.
- $name
(string) The name of the specialized template.