This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Gravity Perks // GP eCommerce Fields // Set Tax Amount Dynamically | |
| * https://gravitywiz.com/documentation/gravity-forms-ecommerce-fields/ | |
| */ | |
| add_filter( 'gform_pre_render_123', 'gpecf_dynamic_tax_amount' ); | |
| add_filter( 'gform_pre_validation_123', 'gpecf_dynamic_tax_amount' ); | |
| add_filter( 'gform_pre_submission_filter_123', 'gpecf_dynamic_tax_amount' ); | |
| add_filter( 'gform_admin_pre_render_123', 'gpecf_dynamic_tax_amount' ); | |
| function gpecf_dynamic_tax_amount( $form ) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Gravity Perks // GF Better User Activation // Set Redirect URL by Entry Value | |
| * http://gravitywiz.com/documentation/gravity-forms-better-user-activation/ | |
| */ | |
| add_filter( 'gpbua_activation_redirect_url', function( $url, $activation ) { | |
| /** | |
| * @var $activation GPBUA_Activate | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * WARNING! THIS SNIPPET MAY BE OUTDATED. | |
| * The latest version of this snippet can be found in the Gravity Wiz Snippet Library: | |
| * https://github.com/gravitywiz/snippet-library/blob/master/gp-media-library/gpml-ajax-upload.php | |
| */ | |
| /** | |
| * Gravity Perks // GP Media Library // Ajax Upload | |
| * | |
| * Upload images to the Media Library as they are uploaded via the Gravity Forms Multi-file Upload field. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * WARNING! THIS SNIPPET MAY BE OUTDATED. | |
| * The latest version of this snippet can be found in the Gravity Wiz Snippet Library: | |
| * https://github.com/gravitywiz/snippet-library/blob/master/gp-nested-forms/gpnf-display-child-entries-table-format.php | |
| */ | |
| /** | |
| * Gravity Perks // GP Nested Forms // Display Table Format for All Fields | |
| * http://gravitywiz.com/documentation/gravity-forms-nested-forms/ | |
| * |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Gravity Perks // GP Limit Submissions // Dynamically Set Limit | |
| * http://gravitywiz.com/gravity-forms-limit-submissions/ | |
| */ | |
| add_filter( 'gpls_rule_groups', function( $rule_groups ) { | |
| foreach( $rule_groups as &$rule_group ) { | |
| if( $rule_group->name == 'Your Feed Name' ) { | |
| $rule_group->limit = 100; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Gravity Perks // GP Limit Submissions // Display Poll Results When Limit Is Reached | |
| * http://gravitywiz.com/documentaiton/gravity-forms-limit-submissions/ | |
| */ | |
| add_action( 'gform_get_form_filter', function( $markup, $form ) { | |
| if( ! is_callable( 'gf_polls' ) || ! gf_polls()->get_form_setting( $form, 'displayResults' ) ) { | |
| return $markup; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Gravity Wiz // Gravity Forms Styles Pro // Force Validation Message | |
| * http://gravitywiz.com | |
| */ | |
| if( class_exists( 'StylesPro' ) ) { | |
| add_filter( 'gform_validation_message', function( $message, $form ) { | |
| add_filter( "gform_validation_message_{$form['id']}", array( StylesPro::get_instance(), 'gf_stylespro_validation'), 11, 2 ); | |
| }, 10, 2 ); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * WARNING! THIS SNIPPET MAY BE OUTDATED. | |
| * The latest version of this snippet can be found in the Gravity Wiz Snippet Library: | |
| * https://github.com/gravitywiz/snippet-library/blob/master/gp-nested-forms/gpnf-require-unique-values.php | |
| */ | |
| /** | |
| * Gravity Perks // GP Nested Forms // Require Unique Value Between Parent & Child | |
| * | |
| * Throw a validation error if a value is present a child entry that has been entered on the parent form. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Gravity Perks // GP Limit Dates // Block Date Range via Exceptions | |
| */ | |
| add_filter( 'gpld_limit_dates_options_1364_1', 'gpld_except_date_range', 10, 3 ); | |
| function gpld_except_date_range( $options, $form, $field ) { | |
| $start_date = '2016-07-15'; | |
| $end_date = '2017-01-01'; |