Skip to content

Instantly share code, notes, and snippets.



Created Mar 27, 2018
What would you like to do?
Add anchor to cart URL
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
You can’t perform that action at this time.