Last active
April 13, 2016 20:46
-
-
Save alhoseany/8c9059831c56357a3b336fd4c4877002 to your computer and use it in GitHub Desktop.
Redirect Buddypress profile edit screen to custom wordpress page
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action('xprofile_screen_edit_profile', 'redirect_to_account_setup'); | |
function redirect_to_account_setup(){ | |
wp_redirect( get_permalink( get_page_by_path( 'account-setup' ) ) ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment