Last active
August 29, 2015 14:06
-
-
Save fikrirasyid/d0b38c9e87797334b1ab to your computer and use it in GitHub Desktop.
WordPress: Custom Conditional Tag For Detecting Sign Up 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
/** | |
* Check if current page is signup page or not | |
* | |
* @return boolean | |
*/ | |
function is_signup(){ | |
global $wp; | |
if( 'wp-signup.php' == $wp->request ){ | |
return true; | |
} else { | |
return false; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment