Filename: gpls-dynamically-set-limit.php
gpls-dynamically-set-limit.php
<?php /** * Gravity Perks // Limit Submissions // Dynamically Set Limit * https://gravitywiz.com/gravity-forms-limit-submissions/ */ // Update '123' to the Form ID add_filter('gpls_rule_groups_123', function ( $rule_groups ) { foreach ( $rule_groups as &$rule_group ) { if ( $rule_group->name == 'Your Feed Name' ) { $rule_group->limit = 100; } } return $rule_groups; });
Your email address will not be published. Required fields are marked *
Comment *
Notify me of followup comments via e-mail
Name *
Email *
Website
Save my name, email, and website in this browser for the next time I comment.
By commenting, I understand that I may receive emails related to Gravity Wiz and can unsubscribe at any time.
Δ