do_action( "get_template_part_{$slug}", string $slug, string|null $name )

Fires before the specified template part file is loaded.


Description Description

The dynamic portion of the hook name, $slug, refers to the slug name for the generic template part.


Top ↑

Parameters Parameters

$slug

(string) The slug name for the generic template.

$name

(string|null) The name of the specialized template.



Top ↑

Source Source

File: wp-includes/general-template.php

View on Trac


Top ↑

Changelog Changelog

Changelog
Version Description
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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