Fires before an attempt is made to locate and load a template part.
$slugstring$namestring$templatesstring[]$argsarraywp-includes/general-template.php:204get_template_part() * @param string $slug The slug name for the generic template. * @param string $name The name of the specialized template or an empty * string if there is none. * @param string[] $templates Array of template files to search for, in order. * @param array $args Additional arguments passed to the template. */ do_action( 'get_template_part', $slug, $name, $templates, $args ); if ( ! locate_template( $templates, true, false, $args ) ) { return false; }}Introduced in 5.2.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.