do_action( "get_template_part_{$slug}", string $slug, string $name, array $args )

Fires at the start of bp_get_template_part().

Description Description

This is a variable hook that is dependent on the slug passed in.

Top ↑

Parameters Parameters


(string) Template part slug requested.


(string) Template part name requested.


(array) Extra args to pass to locate_template().

Source Source

File: bp-core/bp-core-template-loader.php

View on Trac

Top ↑

Changelog Changelog

Version Description
7.0.0 Added $args parameter.
1.7.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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