Last active
August 29, 2015 14:09
-
-
Save SeanChDavis/f54fe89d192905ef10b9 to your computer and use it in GitHub Desktop.
EDD "Already Logged In" message for [edd_register]
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 // DO NOT COPY THIS LINE | |
/** | |
* Show message instead of registration form [edd_register] when user is logged in | |
*/ | |
function sd_already_registered_message() { | |
if ( is_user_logged_in() ) { | |
// custom message | |
$message = "You're already logged in."; | |
return $message; | |
} | |
} | |
add_filter( 'edd_register_form', 'sd_already_registered_message' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment