Skip to content

Instantly share code, notes, and snippets.

@gareth-gillman
Created March 23, 2018 12:02
Show Gist options
  • Save gareth-gillman/36e754af73e1013d19866a852082cc54 to your computer and use it in GitHub Desktop.
Save gareth-gillman/36e754af73e1013d19866a852082cc54 to your computer and use it in GitHub Desktop.
Add link below Single Add to Cart button in Woocommerce
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