Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Gravity Perks // GP Limit Submissions // Dynamically Set Limit
<?php
/**
* Gravity Perks // GP Limit Submissions // Dynamically Set Limit
* http://gravitywiz.com/gravity-forms-limit-submissions/
*/
add_filter( 'gpls_rule_groups', function( $rule_groups ) {
foreach( $rule_groups as &$rule_group ) {
if( $rule_group->name == 'Your Feed Name' ) {
$rule_group->limit = 100;
}
}
return $rule_groups;
} );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.