bp_template_redirect()
Fire the ‘bp_template_redirect’ action.
Description Description
Run at ‘template_redirect’, just before WordPress selects and loads a theme template. The main purpose of this hook in BuddyPress is to redirect users who do not have the proper permission to access certain content.
Source Source
File: bp-core/bp-core-dependency.php
function bp_template_redirect() { /** * Fires inside the 'bp_template_redirect' function. * * @since 1.6.0 */ do_action( 'bp_template_redirect' ); }
Changelog Changelog
Version | Description |
---|---|
1.6.0 | Introduced. |