Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?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