Skip to content

Instantly share code, notes, and snippets.

@rickslayer
Created September 12, 2018 23:47
Show Gist options
  • Save rickslayer/2806c991ed04c08ec1cdb28d1eb4931e to your computer and use it in GitHub Desktop.
Save rickslayer/2806c991ed04c08ec1cdb28d1eb4931e to your computer and use it in GitHub Desktop.
Add any HTML element before cart button on product page
//adiciona botão na página do produto
//add button before cart button on product page
function botao_medida()
{
echo 'any HTML element';
}
add_action('woocommerce_before_add_to_cart_button', 'botao_medida', 11);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment