Change redirect URL after changing user avatar
Currently, when a user finishes changing their user avatar, they get redirected to their profile. I want them to be redirected to their edit profile screen.
The code is in here \wp-content\plugins\buddypress\bp-xprofile\bp-xprofile-screens.php and the code is in the function
The actual bit of code I need to change is:
do_action( 'xprofile_avatar_uploaded' ); bp_core_add_message( __( 'Your new profile photo was uploaded successfully.', 'buddypress' ) ); bp_core_redirect( bp_displayed_user_domain() );
What I need to do is edit that bp_core_redirect() without editing BuddyPress’ core files. Any one have any idea how I can do this?
- The topic ‘Change redirect URL after changing user avatar’ is closed to new replies.