Last active
September 3, 2020 20:04
-
-
Save spivurno/5a8078711139730964b86bd8c7ef7b5e to your computer and use it in GitHub Desktop.
Gravity Perks // GP Limit Submissions // Disable Limit Feeds when Editing via Gravity View
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 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(); | |
} | |
return $rule_groups; | |
}, 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
👉 This Gist has been migrated to the Gravity Wiz Snippet Library:
https://github.com/gravitywiz/snippet-library/blob/master/gp-limit-submissions/gpls-disable-for-gravity-view.php