Skip to content

Instantly share code, notes, and snippets.

@grola
Created March 27, 2018 06:41
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
Add anchor to cart URL
<?php
add_filter( 'woocommerce_get_cart_page_permalink', 'studiowp_woocommerce_get_cart_page_permalink' );
function studiowp_woocommerce_get_cart_page_permalink( $permalink ) {
return $permalink . '#my_id';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment