bp_view_no_access_redirect_to_login_screen

bp_view_no_access_redirect_to_login_screen

Hook Type: filter

See hook in core

Displaying hooks found in version: buddypress.12.3.0

apply_filters('bp_view_no_access_redirect_to_login_screen') is found 1 times:

  • /bp-core/classes/class-bp-component.php line 1310
    				 * @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();