get_template_part

Advertisement

Summery Summery

Fires before a template part is loaded.

Syntax Syntax

do_action( 'get_template_part', string $slug, string $name, string[] $templates )

Parameters Parameters

$slug

The slug name for the generic template.

$name

The name of the specialized template.

$templates

Array of template files to search for, in order.

Source Source

File: wp-includes/general-template.php

Advertisement

Changelog Changelog

Changelog
Version Description
5.2.0 Introduced.

Advertisement

Leave a Reply