I’m having a problem with this redirect after login. I added an extra field in the registration, then after that. If a user logins, I want to redirect that person to the specified URL based on the EXTRA FIELD he/she entered.
Thank you!
I’m having a problem with this redirect after login. I added an extra field in the registration, then after that. If a user logins, I want to redirect that person to the specified URL based on the EXTRA FIELD he/she entered.
Thank you!
You must be logged in to post a comment.
Considering that you’re using
update_usermeta( $user_id, $meta_key, $meta_value );
, the following will do.I created a custom profile field named
twitter
and applied this hook towp_login
: