gfcb_localized_script_data

  1. Description
  2. Usage
  3. Parameters

Description

Filter the localized script data refreshed in the Cache Buster’s AJAX response. Unset a handle to leave its data alone, or return an empty array to disable refreshing entirely.

Usage

Applied globally

add_filter( 'gfcb_localized_script_data', 'my_custom_function' );

Applied to specific form

add_filter( 'gfcb_localized_script_data_FORMID', 'my_custom_function' );

Parameters

$data array

The newly localized script data, keyed by script handle.

$form_id int

The ID of the form being rendered.