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

Fires before a template part is loaded.


Description Description


Parameters Parameters

$slug

(string) The slug name for the generic template.

$name

(string) The name of the specialized template.

$templates

(string[]) Array of template files to search for, in order.


Top ↑

Source Source

File: wp-includes/general-template.php

View on Trac


Top ↑

Changelog Changelog

Changelog
Version Description
5.2.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.