Created
March 20, 2015 03:11
-
-
Save claudiosanches/8c4a01c2c94857f415b2 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