Skip to content

Instantly share code, notes, and snippets.

@greenhornet79
Created September 6, 2022 20:35
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 greenhornet79/79f4444dcb5882264c8cab185b8cfcca to your computer and use it in GitHub Desktop.
Save greenhornet79/79f4444dcb5882264c8cab185b8cfcca to your computer and use it in GitHub Desktop.
<?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