get_template_part_{$slug}

get_template_part_{$slug}

Hook Type: action

See hook in core

Displaying hooks found in version: wordpress-6.0.1

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

  • /wp-includes/general-template.php line 181
    	 * @param string      $slug The slug name for the generic template.
    	 * @param string|null $name The name of the specialized template.
    	 * @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";
    	}