• Resolved joncon62

    (@joncon62)


    Hi,

    How do I stay on the profile edit page after I update the user profile? As default it redirects to view profile page (without the /?profiletab=main&um_action=edit query parameters)

Viewing 6 replies - 1 through 6 (of 6 total)
  • So you edit a profile, and once you save the changes you revert to view mode? Is that not expected behaviour?

    Thread Starter joncon62

    (@joncon62)

    The problem is in ‘view’ mode I don’t see any of the data I’ve updated. I may have missed a setting to display the set fields. When I save any post in wordpress I stay on the edit screen. That’s my expected behaviour.

    Thread Starter joncon62

    (@joncon62)

    I’ve now managed to enable the view of the profile info, I didn’t have ‘About Tab’ ticked in Settings->Appearance->Profile Menu.

    It would still be useful to know how to stop the redirect to ‘view’ mode after an update.

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @joncon62

    You can try this code snippet to redirect to the edit view:

    add_action("um_update_profile_full_name", function( $user_id, $to_update ){
        wp_redirect( um_get_core_page("user")."?um_action=edit" );
        exit;
    },10,2);

    Regards,

    Thread Starter joncon62

    (@joncon62)

    That’s perfect, thanks!

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @joncon62

    Thanks for letting us know. I am closing this thread now.

    Regards,

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Stay on profile edit page after update’ is closed to new replies.