Getting user id or other info through user_register hook
-
I’m trying to extract or get atleast the user_id upon registration using user_register hook.
add_action( ‘user_register’, ‘display_id’, 10, 1);
function display_id( $user_id ) {
echo ‘<script type=”text/javascript”>alert(“Registration of user <?php echo $user_id; ?> successful”);</script>’;
}But the alert doesn’t even shows up.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Getting user id or other info through user_register hook’ is closed to new replies.