Created
July 11, 2012 09:09
-
-
Save rolandinsh/3089191 to your computer and use it in GitHub Desktop.
WordPress is login or register page
This file contains 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
<?php | |
/** | |
* Is login or register page | |
* @author umbrovskis | |
* @authorlink http://umbrovskis.com | |
*/ | |
function smc_is_login_page() { | |
return in_array($GLOBALS['pagenow'], array('wp-login.php', 'wp-register.php')); | |
} | |
// hope some day WordPress will make is_login_page() or is_register_page() or similar |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment