gplc_completed_payments_only

  1. Description
  2. Usage
  3. Parameters
  4. Source

Description

Indicate whether all submissions for a field should be counted against the limit or only submissions with an approved payment.

Usage

Apply to all forms.

add_filter( 'gplc_completed_payments_only', '__return_true' );

Apply to specific form.

add_filter( 'gplc_completed_payments_only_{formId}', '__return_true' );

Parameters

  • $enable_completed_payments_only (boolean)

    Set this to true to only count submissions with completed payments towards the choice limit. Defaults to false.

Source

This filter is located in GP_Limit_Choices::get_choice_counts() in class-gp-limit-choices.php.