tml_new_user_activated hook is not working
-
Hello All,
I want to change the user role after user activation. I am using user moderation through admin approval. So,I am using this code :
function set_role_on_activation( $user_id ) { echo "<script>alert('hello');</script>"; } add_action( 'tml_new_user_activated', 'set_role_on_activation' );I have written this code in my functions.php. But when I am approving user through admin login from back end alert is not coming.
Please help, why it is not working.
Thanks in advance
Sunil
The topic ‘tml_new_user_activated hook is not working’ is closed to new replies.