Last active
December 17, 2018 14:22
-
-
Save spivurno/73b42da15f92f8e330d9cea9a5631cab to your computer and use it in GitHub Desktop.
Gravity Perks // GP Limit Submissions // Disable Limit Feeds when Editing via Sticky List
This file contains 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(); | |
} | |
return $rule_groups; | |
}, 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment