Filename: gpcp-disable-on-gv-edit.php
gpcp-disable-on-gv-edit.php
<?php /** * Gravity Perks // Conditional Pricing // Disable Conditional Pricing on GravityView Edit * https://gravitywiz.com/documentation/gravity-forms-conditional-pricing/ */ add_action( 'gform_register_init_scripts', function( $form ) { if ( is_callable( 'gravityview_get_context' ) && gravityview_get_context() === 'edit' ) { unset( GFFormDisplay::$init_scripts[ $form['id'] ]['gwconditionalpricing_1'] ); } return $form; }, 11 );
Your email address will not be published. Required fields are marked *
Comment *
Notify me of followup comments via e-mail
Name *
Email *
Website
Save my name, email, and website in this browser for the next time I comment.
By commenting, I understand that I may receive emails related to Gravity Wiz and can unsubscribe at any time.
Δ