Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?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