gpi_shortcode_scopes_sql
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.