Description

The wpforms_locker_lockers_entry_limit_exclude_not_allowed_entries_excluded_statuses filter will filter entries with the excluded statuses from the entry limit.

This filter can be used on Form Locker addon versions 2.3.0 and above.

Parameters

$excluded
(array) Excluded statuses.

Source

wpforms-form-locker/src/Lockers/EntryLimit.php

More Information

The filter will look for any excluded statuses and exclude these from the count on the Form Locker settings when using the Entry Limit options.

Examples

/**
 * Excluded entry statuses from entry limit locker.
 *
 * @link  https://wpforms.com/developers/wpforms_locker_lockers_entry_limit_exclude_not_allowed_entries_excluded_statuses/
 *
 * @param array<string> $excluded Excluded statuses.
*/
 
function wpf_dev_exclude_payment_status( $excluded ) {
     
    // Run code

}
add_filter( 'wpforms_locker_lockers_entry_limit_exclude_not_allowed_entries_excluded_statuses', 'wpf_dev_exclude_status', 10, 1 );

Article Reference:
How to Exclude Failed Payments From PayPal Inside Form Locker Settings