Skip to content

Instantly share code, notes, and snippets.

@zorem
Created August 5, 2019 09:21
Show Gist options
  • Save zorem/0115ab9489a99f91bb79a27aa07d403d to your computer and use it in GitHub Desktop.
Save zorem/0115ab9489a99f91bb79a27aa07d403d to your computer and use it in GitHub Desktop.
Using this code snippet you can redirect to custom page after login
<?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