Skip to content

Instantly share code, notes, and snippets.

@geotsiokos
Created May 20, 2018 17:56
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 geotsiokos/c37f598d45bf3e8c5e27ad66394cfd16 to your computer and use it in GitHub Desktop.
Save geotsiokos/c37f598d45bf3e8c5e27ad66394cfd16 to your computer and use it in GitHub Desktop.
add_filter( 'groups_import_export_new_user_registration_subject', 'example_groups_import_export_new_user_registration_subject', 10, 3 );
function example_groups_import_export_new_user_registration_subject( $subject, $user_id, $plaintext_pass ) {
$subject = 'Here you can add whatever you like to display as subject, in the notification mail a user receives for his new account';
return $subject;
}
add_filter( 'groups_import_export_new_user_registration_message', 'example_groups_import_export_new_user_registration_message', 10, 3 );
function example_groups_import_export_new_user_registration_message( $message, $user_id, $plaintext_pass ) {
$message = 'Here you can add whatever you like to display as message, in the notification mail a user receives for his new account';
return $message;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment