Created
October 31, 2020 08:00
-
-
Save plugin-republic/463cc354c22dd5203c1bdd2430ae09c1 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
<?php | |
/** | |
* Filter the content of the new user registration email | |
* @param $message The email content | |
* @param $user The user object | |
* @param $blogname The name of the site | |
* @param $url The url for the user profile | |
*/ | |
function prefix_new_registration_email_content( $message, $user, $blogname, $url ) { | |
$message = sprintf( | |
'<p>%s</p>', | |
'My new message goes here' | |
); | |
// Use the parameters to include extra information | |
$message = sprintf( | |
'<p>%s: <a href="%s">%s</a></p>', | |
'Follow the link to review the user', | |
$url, | |
'Click here' | |
); | |
return $message; | |
} | |
add_filter( 'wcmo_new_registration_email_content', 'prefix_new_registration_email_content', 10, 4 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment