Remove WC Product from Entry Order Summary

Experimental Snippet 🧪

Code

Filename: gspc-remove-wc-product-from-entry-order-summary.php

<?php
/**
 * Gravity Shop // Product Configurator // Remove WC Product from Entry Order Summary
 * https://gravitywiz.com/documentation/gs-product-configurator/
 *
 * Experimental Snippet 🧪
 */
add_filter( 'init', function() {
	if ( is_callable( 'gs_product_configurator' ) ) {
		remove_filter( 'gppa_ajax_form_pre_render', array( gs_product_configurator()->wc_product_form_display, 'inject_base_price_product_field_gppa_ajax' ) );
		remove_filter( 'gform_product_info', array( gs_product_configurator()->wc_product_form_display, 'inject_base_price_into_product_info' ) );
	}
}, 16 );

Leave a Reply

Your email address will not be published. Required fields are marked *

  • Trouble installing this snippet? See our troubleshooting tips.
  • Need to include code? Create a gist and link to it in your comment.
  • Reporting a bug? Provide a URL where this issue can be recreated.

By commenting, I understand that I may receive emails related to Gravity Wiz and can unsubscribe at any time.