get_template_part_{$slug}

get_template_part_{$slug}

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action

See hook in core

Displaying hooks found in version: wordpress-6.4.3

do_action('get_template_part_{$slug}') is found 1 times:

  • /wp-includes/general-template.php line 182
    	 * @param string|null $name The name of the specialized template or null if
    	 *                          there is none.
    	 * @param array       $args Additional arguments passed to the template.
    	 */
    	do_action( "get_template_part_{$slug}", $slug, $name, $args );
    
    	$templates = array();
    	$name      = (string) $name;
    	if ( '' !== $name ) {
    		$templates[] = "{$slug}-{$name}.php";
    	}