Created
July 1, 2024 13:01
-
-
Save plugin-republic/2eb5252ea4557a9df29598f0ce114da7 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
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