Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save champsupertramp/dc090dabdc512cb09346 to your computer and use it in GitHub Desktop.
Save champsupertramp/dc090dabdc512cb09346 to your computer and use it in GitHub Desktop.
<?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);
?>
@fixmyinfo
Copy link

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...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment