Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save plugin-republic/463cc354c22dd5203c1bdd2430ae09c1 to your computer and use it in GitHub Desktop.
Save plugin-republic/463cc354c22dd5203c1bdd2430ae09c1 to your computer and use it in GitHub Desktop.
<?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