Created
November 11, 2015 06:59
-
-
Save champsupertramp/dc090dabdc512cb09346 to your computer and use it in GitHub Desktop.
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
<?php | |
/** | |
* @um_user_after_updating_profile | |
*/ | |
function doggycom_redirect_after_updating_profile( $to_update ){ | |
exit( wp_redirect( remove_query_arg( array('profiletab','um_action') ) ) ); | |
} | |
add_action('um_user_after_updating_profile','doggycom_redirect_after_updating_profile',10,1); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Will this work to redirect to a different page after update? No way to simply display a message after update to profile? If redirecting, where do I set the url to redirect to? Thanks much...