bp_core_login_profile_dashboard_redirect( string $redirect_to, string $redirect_to_raw, array $user )
Redirect member to profile dashboard.
Description
Parameters
- $redirect_to
-
(Required) redirect to.
- $redirect_to_raw
-
(Required) redirect toraw.
- $user
-
(Required) user.
Return
(mixed)
Source
File: bp-core/bp-core-catchuri.php
function bp_core_login_profile_dashboard_redirect( $redirect_to, $redirect_to_raw, $user ) { if ( bp_nouveau_get_appearance_settings( 'user_front_page' ) ) { if ( bp_nouveau_get_appearance_settings( 'user_front_page_redirect' ) ) { $page_ids = bp_core_get_directory_page_ids(); $profile_dashboard = isset( $page_ids['profile_dashboard'] ) ? $page_ids['profile_dashboard'] : false; if ( $profile_dashboard > 0 ) { $dashboard_link = get_permalink( $profile_dashboard ); $redirect_to = $dashboard_link; } } } return apply_filters( 'bp_core_login_profile_dashboard_redirect', $redirect_to ); }
Changelog
Version | Description |
---|---|
BuddyBoss 1.0.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.