mateusneves
7/16/2014 - 1:33 PM

Function to return true or false if the current page is the login page

Function to return true or false if the current page is the login page

function is_login_page() {
    return in_array($GLOBALS['pagenow'], array('wp-login.php', 'wp-register.php'));
}