Create a gist now

Instantly share code, notes, and snippets.

Embed
What would you like to do?
function cwc_login_redirect( $redirect, $user ) {
return home_url();
}
add_filter( 'woocommerce_login_redirect', 'cwc_login_redirect', 10, 2 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment