Created
February 4, 2014 08:29
-
-
Save picklewagon/8800006 to your computer and use it in GitHub Desktop.
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
/** | |
* Modify the contents of the message sent to the admin when a user signs up. | |
* | |
* @param $message The default message. | |
* @return string the updated message. | |
*/ | |
function my_custom_message( $message ) { | |
$new_message = 'USERNAME (USEREMAIL) has requested a username at SITENAME' . "\n\n"; | |
$new_message .= "SITEURL\n\n"; | |
$new_message .= 'To approve or deny this user access to SITENAME go to' . "\n\n"; | |
$new_message .= "ADMINURL\n\n"; | |
return new_message; | |
} | |
// modify the message sent to the admin | |
add_filter( 'new_user_approve_request_approval_message_default', 'my_custom_message' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment