Created
November 16, 2015 09:23
-
-
Save wpweb101/8accdbcd4acc981c72fb to your computer and use it in GitHub Desktop.
Woocommerce Collections - Change Redirect URL for non loggedin user
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 woo_cl_redirect_to_my_account( $redirect_url = '' ) { | |
| // my account page URL | |
| $redirect_url = get_permalink( get_option('woocommerce_myaccount_page_id') ); | |
| return $redirect_url; | |
| } | |
| add_filter( 'woo_cl_redirect_link_for_non_login_user', 'woo_cl_redirect_to_my_account' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment