bp_view_no_access_redirect_to_login_screen
bp_view_no_access_redirect_to_login_screen
Appears in: buddypress.12.0.0, buddypress.12.1.1, buddypress.12.2.0, buddypress.12.3.0, buddypress.12.4.0, buddypress.12.4.1, buddypress.12.5.0, buddypress.12.5.1, buddypress.14.0.0, buddypress.14.1.0, buddypress.14.2.1
Hook Type: filter
Displaying hooks found in version: buddypress.14.2.1apply_filters('bp_view_no_access_redirect_to_login_screen') is found 1 times:
- /bp-core/classes/class-bp-component.php line 1323
* @since 12.0.0 * * @param false Whether the user should be redirected to the site login screen. */ $do_redirect_to_login_screen = apply_filters( 'bp_view_no_access_redirect_to_login_screen', false ); if ( true === $do_redirect_to_login_screen && ! is_user_logged_in() ) { bp_core_no_access(); } // The current user may not access the directory page. $bp = buddypress();