Created
March 27, 2018 06:41
-
-
Save grola/417dfb0ea0f6b7a46d80fa71c737ad12 to your computer and use it in GitHub Desktop.
Add anchor to cart URL
This file contains 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 | |
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