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

$slug

(string) Template part slug requested.

$name

(string) Template part name requested.

$args

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


Source Source

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

View on Trac



Top ↑

Changelog 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.