gppa_allow_all_lmts

  1. Description
  2. Usage
  3. Parameters
  4. Since
  5. Examples
    1. Allow all Live Merge Tags for a specific form

Description

Filter if all Live Merge Tags should be allowed and parsed.

Usage

Filter if all Live Merge Tags should be allowed for all forms.

add_filter( 'gppa_allow_all_lmts', 'my_custom_function' );

Filter if all Live Merge Tags should be allowed for a specific form.

add_filter( 'gppa_allow_all_lmts_FORMID', 'my_custom_function' );

Parameters

  • value array

    Whether or not all Live Merge Tags are allowed. This is set to false by default for enhanced security.

  • form array

    The current form.

Since

This filter is available since GP Populate Anything 1.0-beta-4.52.

Examples

Allow all Live Merge Tags for a specific form

This example sets form 123 to allow and parse all Live Merge Tags.

<?php
/**
 * Gravity Perks // Populate Anything // Allow All Live Merge Tags for a Specific Form
 * https://gravitywiz.com/documentation/gravity-forms-populate-anything/
 */
// Update "123" to your form ID.
add_filter( 'gppa_allow_all_lmts_123', '__return_true' );