Skip to content

Instantly share code, notes, and snippets.

@wpweb101
Created November 16, 2015 09:23
Show Gist options
  • Select an option

  • Save wpweb101/8accdbcd4acc981c72fb to your computer and use it in GitHub Desktop.

Select an option

Save wpweb101/8accdbcd4acc981c72fb to your computer and use it in GitHub Desktop.
Woocommerce Collections - Change Redirect URL for non loggedin user
<?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