Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save plugin-republic/2eb5252ea4557a9df29598f0ce114da7 to your computer and use it in GitHub Desktop.
Save plugin-republic/2eb5252ea4557a9df29598f0ce114da7 to your computer and use it in GitHub Desktop.
<?php
function prefix_external_registration_approval_message( $message, $url, $user_id ) {
if( ! apply_filters( 'wcmo_allow_external_approval', false ) ) {
return $message;
}
$user_data = get_userdata( $user_id );
$message .= '<p>User email: ' . $user_data->user_email . '</p>';
return $message;
}
add_filter( 'wcmo_registration_approval_message', 'prefix_external_registration_approval_message', 100, 3 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment