bp_login_redirect( string $redirect_to = '', string $redirect_to_raw = '', bool $user = false )
Fire the ‘bp_login_redirect’ filter, a piggy-back of WP’s ‘login_redirect’.
Description
Parameters
- $redirect_to
-
(Optional) See 'login_redirect'.
Default value: ''
- $redirect_to_raw
-
(Optional) See 'login_redirect'.
Default value: ''
- $user
-
(Optional) See 'login_redirect'.
Default value: false
Return
(string)
Source
File: bp-core/bp-core-dependency.php
function bp_login_redirect( $redirect_to = '', $redirect_to_raw = '', $user = false ) { /** * Filters the URL to redirect to after login. * * @since BuddyPress 1.7.0 * * @param string $redirect_to The redirect destination URL. * @param string $redirect_to_raw The requested redirect destination URL passed as a parameter. * @param WP_User|WP_Error $user WP_User object if login was successful, WP_Error object otherwise. */ return apply_filters( 'bp_login_redirect', $redirect_to, $redirect_to_raw, $user ); }
Changelog
Version | Description |
---|---|
BuddyPress 1.7.0 | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.