Last active
August 29, 2015 14:08
-
-
Save vishalbasnet23/35d1f4292f212464e9cd to your computer and use it in GitHub Desktop.
Redirect to custom page url after successful Login WooCommerce
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 add_filter('woocommerce_login_redirect', 'wc_login_redirect'); | |
| function wc_login_redirect( $redirect_to ) { | |
| $page_slug = 'foo'; | |
| $redirect_to = get_permalink( get_page_by_path( $page_slug ) ); | |
| return $redirect_to; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment