-
-
Save brunoalvarenga/252a6a69476596b8207fb0c03d2cf12f to your computer and use it in GitHub Desktop.
WooCommerce - Redirect login to shop page
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 | |
function custom_woocommerce_login_redirect( $url ) { | |
return get_permalink( wc_get_page_id( 'shop' ) ); | |
} | |
add_filter( 'woocommerce_login_redirect', 'custom_woocommerce_login_redirect' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment