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 Populate Anything // Only Show Unique Choices | |
* http://gravitywiz.com/documentation/gravity-forms-populate-anything/ | |
*/ | |
add_filter( 'gppa_input_choices', function( $choices ) { | |
global $gppa_uniques; | |
$gppa_uniques = array(); | |
$choices = array_filter( $choices, function( $var ) { | |
global $gppa_uniques; |
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 | |
class GW_Limit_Populated_Choices { | |
public function __construct( $args = array() ) { | |
// set our default arguments, parse against the provided arguments, and store for use throughout the class | |
$this->_args = wp_parse_args( $args, array( | |
'form_id' => false, | |
'field_id' => 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 // Disable Limit Feeds when Editing via Sticky List | |
* http://gravitywiz.com/documentation/gravity-forms-limit-submissions/ | |
*/ | |
add_filter( 'gpls_rule_groups', function( $rule_groups, $form_id ) { | |
if( rgpost( 'mode' ) == '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
<?php | |
/** | |
* Gravity Perks // GP Populate Anything // Tiny Mailing List | |
* http://gravitywiz.com/documentation/gravity-forms-populate-anything/ | |
* | |
* Send an email all users who have submitted Form A when Form B is submitted. This *should not* be used | |
* to large numbers of notifications. | |
* | |
* # Instructions | |
* |
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/ | |
* |