Created
September 6, 2022 20:35
-
-
Save greenhornet79/79f4444dcb5882264c8cab185b8cfcca 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 | |
add_filter( 'leaky_paywall_doi_email_message', 'zeen101_doi_email_content', 10, 2 ); | |
function zeen101_doi_email_content( $body, $user ) { | |
// add the full name of the user to the double opt in verification email | |
$full_name = $user->first_name . ' ' . $user->last_name; | |
$content = '<p>Hello, ' . $full_name . '!</p>'; | |
return $content . $body; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment