Description
Filter the message that shows if the submission limit for a form has been reached.
Usage
Filter submission limit message for all forms.
add_filter( 'gpls_limit_message', 'my_custom_function' );
Filter submission limit message for a given form.
add_filter( 'gpls_limit_message_FORMID', 'my_custom_function' );
Parameters
message boolean
The “submission limit has been reached” error message
form array
The current GF form array
gpls_enforce_instance GPLS_Enforce
The GPLS_Enforce instance.
Examples
Change the “submission limit” reached message for a specific form
The following example changes the GP Limit Submission “limit reached” message for form ID 2.
add_filter( 'gpls_limit_message_2', function($message, $form, $gpls_enforce_instance) {
return 'No more submissions are accepted at this time.';
}, 10, 3 );
Since
This filter is available since GP Limit Submissions 1.0-beta-2.7.