Created
July 16, 2014 13:33
-
-
Save mateusneves/bb71d3844aac19cd0bca to your computer and use it in GitHub Desktop.
Function to return true or false if the current page is the login page
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function is_login_page() { | |
return in_array($GLOBALS['pagenow'], array('wp-login.php', 'wp-register.php')); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment