Documentation Category: Hook

gpi_disable_choices

DescriptionUsageParametersSinceDescription Filter whether choices should be disabled if not removed. Usage Apply to all fields on all forms. Apply to all fields on a specific …

gpi_remove_choices

DescriptionUsageParametersSinceDescription Filter whether choices should be removed. Usage Apply to all fields on all forms. Apply to all fields on a specific form. Apply to …

gpi_selected_values

DescriptionUsageParametersSinceDescription Filter the selected values for the current choice-based field. Usage Apply to all fields on all forms. Apply to all fields on a specific …

gpi_out_of_stock_message

DescriptionUsageParametersSinceDescription Filter validation message when the item is out of stock. Usage Apply to all fields on all forms. Apply to all fields on a …

gpi_pre_render_choice

DescriptionUsageParametersSinceDescription Filter to modify choices (includes whether the choice has exceeded its limit). Usage Apply to all fields on all forms. Apply to all fields …

gpi_choice_counts

DescriptionUsageParametersSinceDescription Filter the number of claimed choice counts for the given field. Usage Apply to all fields on all forms. Apply to all fields on …

gpi_is_edit_view

DescriptionUsageParametersSinceDescription Filter if the current page should be treated as an “Edit View” to bypass Inventory Limits and allow [re-]selection of exhausted choices. Usage Parameters …

gpi_query

DescriptionUsageParametersSinceDescription Filter the query used to get claimed inventory counts. Usage Apply to all fields on all forms. Apply to all fields on a specific …

gpi_resource_post_type_args

DescriptionUsageParametersSinceDescription Modify the arguments used for registering the Resource post type. Usage Parameters args array The post type arguments to register the Resource post type. …

gpi_inventory_limit_simple

DescriptionUsageParametersSinceDescription Filter the inventory limit for fields using the Simple Inventory Type. Usage Apply to all fields on all forms. Apply to all fields on …

gpi_inventory_limit_advanced

DescriptionUsageParametersExamplesSet inventory limit by custom field.SinceDescription Filter the inventory limit for fields using the Advanced Inventory Type. Usage Apply to all fields on all forms. …

gpi_reset_value_on_property_change

DescriptionUsageParametersSinceDescription Filter whether to reset the value of the current field with inventory that is using properties. Clearing out the value of choice-based fields will …

gpi_choice_input_types

DescriptionUsageParametersSinceDescription Specify what input types should utilize choice-based inventory. Usage Parameters input_types array The input types that should use choice-based inventory. Default: array( ‘radio’, ‘select’, …

gpi_always_show_inventory_limit_in_editor

DescriptionUsageParametersExamplesAlways use inventory limit in Form EditorSinceDescription Force the Form Editor to always show the Inventory Limit for choices, products, and resources rather than the …

gpi_supported_field_types

DescriptionUsageParametersExamplesAdd Number as a supported field typeSinceDescription Specify what field types are supported. This works in conjunction with gpi_supported_input_types by overriding specific field types. Pass …