Skip to:
Content
Pages
Categories
Search
Top
Bottom

Redirect to profile after avatar edited


  • Debora1976
    Participant

    @debora1976

    Hi,

    I found this function to redirect to profile after profile edit, but how iss it redirected to profile after avatar edited?

    add_action( ‘xprofile_updated_profile’, ‘SaveEditsRedirect’, 12 );
    function SaveEditsRedirect() {
    global $bp;
    wp_redirect( $bp->loggedin_user->domain );
    exit;
    }

Viewing 1 replies (of 1 total)

  • Venutius
    Moderator

    @venutius

    Not sure you can, avatar upload is done in JS and does not involve a page load so there’s nothing to redirect.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar