Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save plugin-republic/6b3fc4e63efd5ee02c0ba49a60a8bef8 to your computer and use it in GitHub Desktop.
Save plugin-republic/6b3fc4e63efd5ee02c0ba49a60a8bef8 to your computer and use it in GitHub Desktop.
<?php
/**
* Move add-on fields below the add to cart button
*/
function tester_remove_fields_from_before_button() {
remove_action( 'woocommerce_before_add_to_cart_button', 'pewc_product_extra_fields' );
add_action( 'woocommerce_after_add_to_cart_button', 'pewc_product_extra_fields' );
}
add_action( 'init', 'tester_remove_fields_from_before_button' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment