gpls_limit_message

  1. Description
  2. Usage
  3. Parameters
  4. Examples
    1. Change the “Submission Limit” reached message for a specific form
  5. Since

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

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.