Created
March 23, 2018 12:02
-
-
Save gareth-gillman/36e754af73e1013d19866a852082cc54 to your computer and use it in GitHub Desktop.
Add link below Single Add to Cart button in Woocommerce
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
function single_cart_extra_btn() { | |
$btn = '<a class="btn" href="http://www.myurl.com">myurl</a>'; | |
return $btn; | |
} | |
add_action( 'woocommerce_single_product_summary', 'single_cart_extra_btn', 35 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment