Create a gist now

Instantly share code, notes, and snippets.

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