Description
Filter the rule groups that will be enforced for this form.
Usage
Apply to all forms.
add_filter( 'gpls_rule_groups', 'my_custom_function' );
Apply to a specific form.
add_filter( 'gpls_rule_groups_FORMID', 'my_custom_function' );
Parameters
$rule_groups array
An array of GPLS_RuleGroup objects.
$form_id int
The current form ID for which rules are being enforced.
Examples
Apply Limit Collectively to Group of Forms
This allows you to apply limits collectively to a group of forms such that other forms will share limits with a Primary Form.
Disable Limit Feeds when Editing via Gravity View
This allows you to disable limit feeds when editing form entries via Gravity View.
Disable Limit Rule for Specific User Role
This allows you to disable the limit submissions feed for users of a specific role.
Since
This filter is available since GP Limit Submission 1.0-beta-1.