gpi_shortcode_scopes_sql

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

Description

Filter the SQL query to get the scope values for the inventory item.

Usage

Applied globally

add_filter( 'gpi_shortcode_scopes_sql', 'my_custom_function' );

Applied to specific form

add_filter( 'gpi_shortcode_scopes_sql_FORMID', 'my_custom_function' );

Parameters

$sql string

The SQL query to get the scope values.

$form array

The form ID.

$field array

The resource field ID.

$resource_field_id int

The resource field ID.

Since

  • 1.0 Hook added.