Skip to:
Content
Pages
Categories
Search
Top
Bottom

Updating Profile


  • rebeccadigitalsea
    Participant

    @rebeccadigitalsea

    Hello,

    I want to have a custom WP page where the user can upload their profile information, without viewing the buddypress content first.
    So they would purchase the membership, update their profile and then be able to use the buddypress pages as normal.

    I have successfully found a way to introduce this into the page, however, the submit button goes straight to /members/member_name/profile/edit/group/1/ rather than updating but remaining on the page the user is on.

    Does anyone have a suggestion how I can redirect the user back to the Welcome page? Thank you
    Rebecca

Viewing 1 replies (of 1 total)

  • Prashant Singh
    Participant

    @prashantvatsh

    add_action('xprofile_updated_profile', 'ps_redirect_welcome', 1, 5); 
    function ps_redirect_welcome( $user_id, $posted_field_ids, $errors, $old_values, $new_values ) 
    {
    	if ( empty( $errors ) ) 
            {
                wp_redirect('your welcome page url'); 
                exit ; 
            }
    }

    Please try this code and add your welcome page url in place of the text.

    Thanks

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