Created
May 18, 2020 13:10
-
-
Save champsupertramp/3c471c60a201fb9fc4c9d58d7421cc1d to your computer and use it in GitHub Desktop.
Ultimate Member - Redirect user to a custom page when viewing a profile that has been deleted
This file contains hidden or 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 | |
/** | |
* Subscribe to my newsletter: www.champ.ninja | |
*/ | |
add_filter("um_locate_user_profile_not_loggedin__redirect",""um_custom_deleted_profile_redirect", 99 ); | |
function um_custom_deleted_profile_redirect( $url ){ | |
$url = '/my-404-page/'; | |
return $url; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment