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

Fires before an attempt is made to locate and load a template part.



(string) The slug name for the generic template.


(string) The name of the specialized template.


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


(array) Additional arguments passed to the template.

Top ↑


File: wp-includes/general-template.php

View on Trac

Top ↑


Version Description
5.5.0 The $args parameter was added.
5.2.0 Introduced.

Top ↑

User Contributed Notes

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