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 Nested Forms // Map Full Child Entry Data via User Registration Add-on | |
| * http://gravitywiz.com/documentation/gravity-forms-nested-forms/ | |
| */ | |
| add_action( 'gform_user_registration_meta_value', function( $value, $meta_key, $meta, $form, $entry, $is_username ) { | |
| if( ! is_callable( 'gp_nested_forms' ) || ! gp_nested_forms()->has_nested_form_field( $form ) ) { | |
| return $value; | |
| } |
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 // Automatic Save & Continue | |
| * | |
| * Automatically save | |
| * load previously saved data (via Gravity Forms' Save & Continue functionality) when a logged-in user views a form. | |
| * | |
| * @version 0.4 | |
| * @author David Smith <david@gravitywiz.com> | |
| * @license GPL-2.0+ |
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 // Disable Limit Feeds when Editing via Gravity View | |
| * http://gravitywiz.com/documentation/gravity-forms-limit-submissions/ | |
| */ | |
| add_filter( 'gpls_rule_groups', function( $rule_groups, $form_id ) { | |
| if( is_callable( 'gravityview_get_context' ) && gravityview_get_context() == 'edit' ) { | |
| $rule_groups = array(); | |
| } |
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
| <script> | |
| /** | |
| * Gravity Perks // GP Copy Cat // Copy Credit Card Name to Name Field | |
| * http://gravitywiz.com/ | |
| */ | |
| gform.addFilter( 'gppc_copied_value', function( value, $targetElem, field ) { | |
| if( field.source.split( '.' ).pop() != 5 ) { | |
| return value; | |
| } |
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 // Apply Global Limit Collectively | |
| * http://gravitywiz.com/documentation/gravity-forms-limit-submissions/ | |
| */ | |
| add_filter( 'gpls_apply_limit_per_form', '__return_false' ); |
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 // Apply Limit Feeds Globally | |
| * http://gravitywiz.com/documentation/gravity-forms-limit-submissions/ | |
| */ | |
| add_filter( 'gpls_rule_groups', function( $rule_groups, $form_id ) { | |
| // Update "123" to the ID of your form. | |
| $primary_form_id = 123; |
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 // Apply Limit Feeds Globally | |
| * http://gravitywiz.com/documentation/gravity-forms-limit-submissions/ | |
| */ | |
| add_filter( 'gpls_rule_groups', function( $rule_groups, $form_id ) { | |
| // Update "123" to the ID of your form. | |
| $primary_form_id = 123; |