Skip to content

Instantly share code, notes, and snippets.

@ibndawood
Created September 18, 2017 08:03
Show Gist options
  • Save ibndawood/412bc22ca3470578d3d887f99ab87f1c to your computer and use it in GitHub Desktop.
Save ibndawood/412bc22ca3470578d3d887f99ab87f1c to your computer and use it in GitHub Desktop.
Electro - Custom HTML after add to cart
add_action( 'woocommerce_single_product_summary', 'ec_child_add_custom_HTML_after_cart_button', 40 );
function ec_child_add_custom_HTML_after_cart_button() {
?><img src="//placehold.it/500x200" alt="" /><?php
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment