Created
August 5, 2019 09:21
-
-
Save zorem/0115ab9489a99f91bb79a27aa07d403d to your computer and use it in GitHub Desktop.
Using this code snippet you can redirect to custom page after login
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 | |
add_filter( "wcalr_login_redirect", "wcalr_login_redirect_link", 10, 1); | |
function wcalr_login_redirect_link($link){ | |
$link = get_home_url(); | |
return $link; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment