Last active
December 14, 2015 21:42
-
-
Save glueckpress/2366559 to your computer and use it in GitHub Desktop.
[WordPress] Conditional tag to check whether current page is wp-login.php or wp-register.php.
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 | |
/** | |
* Conditional tag to check whether current page is wp-login.php or wp-register.php. | |
*/ | |
if( ! function_exists( 'wp_is_login' ) ) { | |
function wp_is_login() { | |
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