Arrow

Possible help in redirecting user to a custom page after profile edit ? | Peter's Login Redirect | Forum

Back to the login redirect plugin page

Please consider registering
guest

Log In

Lost password?
Advanced Search

— Forum Scope —

  

— Match —

   

— Forum Options —

   

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS
Possible help in redirecting user to a custom page after profile edit ?
January 16, 2011
4:08 pm
Ayaz malik
Guest

hello, i am using your redirect plugin it works like a charm.
i made a custom area for members. now what i am planning is to redirect a user to that area whenver they edit their profile (wp-admin/profile.php) . is it possible ?

i have tried implementing this code :

add_action('personal_options_update', 'redirect_me');
function redirect_me(){
wp_redirect(home_url('/'));
exit;
}

But it redirects the user withotu saving the changes in profile edit section :( .
i know its a little off topic but since u did a good redirect plugin i hope u can help me with that.
regards

January 16, 2011
11:31 pm
Peter
Admin
Forum Posts: 841
Offline

Unfortunately I haven't looked at the profile update process before. Sounds like the "personal_options_update" hook is too early in the update workflow. There might be a more suitable hook later in that workflow; if not, the non-hack version would be to duplicate the "save changes" code within your function, and then include the redirect code. The wordpress.org forums are a good place to ask for more help on that.

Good luck!

January 17, 2011
3:36 am
Ayaz malik
Guest

Hey Peter,
Thanks for the prompt reply. i have tried it as well no luck :( . also getting no answer in the wordpress forum .
i am not good with coding stuff :( . so if you can spend a little time and figure this out i will be really thankful to u :)
chees

AYaz