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 type="text/javascript"> | |
| // [email protected] => gravitywiz.com | |
| gform.addFilter( 'gppc_copied_value', function( value, $elem, data ) { | |
| if( data.target == 2 && value ) { | |
| value = value.split( '@' )[1]; | |
| } | |
| 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 | |
| /** | |
| * 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/gravity-forms/gw-round-robin.php | |
| */ | |
| /** | |
| * Gravity Wiz // Gravity Forms // Rotating Values | |
| * http://gravitywiz.com/ | |
| */ |
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 Better User Activation // Enable Editor on Activation Page | |
| * http://gravitywiz.com/documentionat/gravity-forms-better-user-activation/ | |
| */ | |
| add_action( 'init', function() { | |
| if ( is_callable( 'gp_better_user_activation' ) ) { | |
| remove_action( 'admin_head', array( gp_better_user_activation(), 'remove_default_content_editor' ) ); | |
| } | |
| } ); |
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 // Cache Buster | |
| * | |
| * Bypass your website cache when loading a Gravity Forms form. | |
| * | |
| * @version 0.2 | |
| * @author David Smith <[email protected]> | |
| * @license GPL-2.0+ | |
| * @link http://gravitywiz.com/ |
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 // Modify Order Labels | |
| * http://gravitywiz.com/documentation/gravity-forms-ecommerce-fields/ | |
| */ | |
| add_filter( 'gpecf_order_labels', function( $labels ) { | |
| $labels['order'] = 'Le Order'; | |
| $labels['product'] = 'Le Product'; | |
| $labels['quantity'] = 'Le Quantity'; | |
| $labels['unit_price'] = 'Le Unit Price'; |
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-acf-user-image-field.php | |
| */ | |
| /** | |
| * Gravity Perks // GP Media Library // Populate ACF Image Fields in User Profile | |
| * http://gravitywiz.com/documentation/gp-media-library/ | |
| * |
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 Media Library // Auto-attach Uploaded Files to GF-generated Post | |
| * http://gravitywiz.com/documentation/gp-media-library/ | |
| */ | |
| add_action( 'gform_after_create_post', function( $post_id, $entry, $form ) { | |
| if( is_callable( 'gp_media_library' ) ) { | |
| $file_ids = gp_media_library()->get_file_ids_by_entry( $entry, $form ); | |
| if( $file_ids ) { | |
| foreach( $file_ids as $field_id => $_file_ids ) { |
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 // Hide Field on Entry Detail | |
| * http://gravitywiz.com/ | |
| */ | |
| // update "123" to your form ID; "6" to your field ID. | |
| add_filter( 'gform_field_content_123_6', function ( $field_content, $field ) { | |
| if ( $field->is_entry_detail() ) { | |
| $field_content = ''; | |
| } |
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-limit-checkboxes/gplcb-conditional-limits.php | |
| */ | |
| /** | |
| * Gravity Wiz // Gravity Perks // GP Limit Checkboxes // Conditional Limits | |
| * | |
| * Provide conditional min/max for your checkbox fields. |