User Approved Hook & User Email Change
-
Hi
The Plugin works relly good but I have 2 questions/problems with my TML installation.
First:
I’ve set the Admin Moderation for new users.
Now when I as an admin approve a pending user, the new user as no user role. I’m trying to set a new user role when the user is approved wit hthe following code in my functions.phpfunction set_role_on_activation( $user_id ) { if ($pending_role = get_user_meta( $user_id, 'pending_role', true ) ) { $user = new WP_User( $user_id ); $user->set_role('subsriber'); unset( $user ); } } add_filter( 'tml_new_user_activated', 'set_role_on_activation' );But sadly that doesn’t work… I’ve also tried to give an js alert but I think the hook is not working. Can someone point me to the right direction?
Second:
The users can login with Email and with the Username. Is it possible the let the user change his email address with this setting?Thanks for your answer
Alex
The topic ‘User Approved Hook & User Email Change’ is closed to new replies.