Cà phe sua hoa tan gudeli

INSTANT COFFEE MIX

Taste The Pure Bean
We use only the finest Coffee beans ...
SHOP NOW
$args = array( 'redirect' => home_url(), 'id_username' => 'user', 'id_password' => 'pass', ) ;?>
//Function login page function redirect_login_page() { $login_page = home_url( '/login/' ); $page_viewed = basename($_SERVER['REQUEST_URI']); if( $page_viewed == "wp-login.php" && $_SERVER['REQUEST_METHOD'] == 'GET') { wp_redirect($login_page); exit; } } add_action('init','redirect_login_page'); //Login Failed function login_failed() { $login_page = home_url( '/login/' ); wp_redirect( $login_page . '?login=failed' ); exit; } add_action( 'wp_login_failed', 'login_failed' ); //Login failed pass or user function verify_username_password( $user, $username, $password ) { $login_page = home_url( '/login/' ); if( $username == "" || $password == "" ) { wp_redirect( $login_page . "?login=empty" ); exit; } } add_filter( 'authenticate', 'verify_username_password', 1, 3); //Log Out function logout_page() { $login_page = home_url( '/login/' ); wp_redirect( $login_page . "?login=false" ); exit; } add_action('wp_logout','logout_page'); $login = (isset($_GET['login']) ) ? $_GET['login'] : 0; if ( $login === "failed" ) { echo '

ERROR: Invalid username and/or password.

'; } elseif ( $login === "empty" ) { echo '

ERROR: Username and/or Password is empty.

'; } elseif ( $login === "false" ) { echo '

ERROR: You are logged out.

';