Skip to content

Instantly share code, notes, and snippets.

@mikeyarce
Created September 23, 2017 19:58
Show Gist options
  • Save mikeyarce/96567f4465b672952e57371f2e8719ba to your computer and use it in GitHub Desktop.
Save mikeyarce/96567f4465b672952e57371f2e8719ba to your computer and use it in GitHub Desktop.
Move WooCommerce Product Add-on Location
<?php
// This first removes it from `before_add_to_cart_button` and then adds it to `woocommerce_product_thumbnails`
remove_action( 'woocommerce_before_add_to_cart_button', array( $GLOBALS['Product_Addon_Display'], 'display' ), 10 );
add_action( 'woocommerce_product_thumbnails', array($GLOBALS['Product_Addon_Display'], 'display'), 15);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment