gpls_limit_message
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
<?php
/**
* Gravity Perks // Limit Submissions // Change the "Submission Limit" Reached Message For a Specific Form
* https://gravitywiz.com/documentation/gravity-forms-limit-submissions/
*/
// Update "123" to the form ID.
add_filter( 'gpls_limit_message_123', 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.