gpls_exclude_partial_entries
Description
Filter whether to exclude partial entries from Limit Submission rules (default: true).
Usage
add_filter( 'gpls_exclude_partial_entries', '__return_false' );
Parameters
exclude_partial_entries bool
Whether to exclude partial entries from the rules.
gpls_rule_test \GPLS_RuleTest
The current instance of the GPLS_RuleTest class.
Since
This filter is available since Gravity Forms Limit Submissions 1.1.16.
Examples
Include partial entries for a specific form.
// Replace 7 with your form id.
add_filter( 'gpls_exclude_partial_entries_7', '__return_false' );
Include partial entries for a specific feed.
add_filter( 'gpls_exclude_partial_entries', function( $exclude_partial_entries, $gpls_rule_test ) {
// For targetting only a specific feed id. Replace 108 with your Limit Submissions feed id.
if ( $gpls_rule_test->rule_group->feed_id == 108 ) {
return false;
}
return $exclude_partial_entries;
}, 10, 2 );