bbp_login_notices()
Handle the login and registration template notices
Description Description
Source Source
File: includes/users/template.php
function bbp_login_notices() { // loggedout was passed if ( ! empty( $_GET['loggedout'] ) && ( true === $_GET['loggedout'] ) ) { bbp_add_error( 'loggedout', esc_html__( 'You are now logged out.', 'bbpress' ), 'message' ); // registration is disabled } elseif ( ! empty( $_GET['registration'] ) && ( 'disabled' === $_GET['registration'] ) ) { bbp_add_error( 'registerdisabled', esc_html__( 'New user registration is currently not allowed.', 'bbpress' ) ); // Prompt user to check their email } elseif ( ! empty( $_GET['checkemail'] ) && in_array( $_GET['checkemail'], array( 'confirm', 'newpass', 'registered' ), true ) ) { switch ( $_GET['checkemail'] ) { // Email needs confirmation case 'confirm' : bbp_add_error( 'confirm', esc_html__( 'Check your e-mail for the confirmation link.', 'bbpress' ), 'message' ); break; // User requested a new password case 'newpass' : bbp_add_error( 'newpass', esc_html__( 'Check your e-mail for your new password.', 'bbpress' ), 'message' ); break; // User is newly registered case 'registered' : bbp_add_error( 'registered', esc_html__( 'Registration complete. Please check your e-mail.', 'bbpress' ), 'message' ); break; } } }
Changelog Changelog
Version | Description |
---|---|
2.0.0 | Introduced. |