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' );
}

Top ↑

Changelog Changelog

Changelog
Version Description
1.6.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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