MainWP Community

My account login redirect to home in WooCommerce

My account login redirect to home in WooCommerce on your child site.

Snippet Type

Execute on Child Sites

Snippet

add_filter('woocommerce_login_redirect', 'wc_login_redirect');
function wc_login_redirect( $redirection_url ) {
    $redirection_url = get_home_url();
    return $redirection_url;
}
1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.