• I’m using a plugin to redirect subscribers to a certain page after they log in, but I can’t seem to find a way to redirect them to that page after updating their user profile. Once they’ve clicked on “update profile”, they just see that profile page again with a notice that it’s been updated, but there is no clear indication of how to return to the site (for people who don’t do this stuff all day long, it’s not particularly intuitive to click on the name of the site in the far upper right corner – they don’t recognize it as a link).

    Any ideas? I’m guessing there’s a line of code I could change in user-edit.php or something, but I’d rather not figure it out by trial and error…any guidance would be appreciated. Thanks!

Viewing 1 replies (of 1 total)
  • I just did a tutorial about this. You can check it out from the link below:

    http://bit.ly/khxOsX

    add_action( 'profile_update', 'custom_profile_redirect', 12 );
    function custom_profile_redirect() {
    	wp_redirect( trailingslashit( home_url() ) );
    	exit;
    }

    Basically you need to take the wp_redirect function and point it to the specific URL that you want them to see after they update their page.

Viewing 1 replies (of 1 total)

The topic ‘Redirect after updating user profile?’ is closed to new replies.