Documentation Category: Hook

gpnf_modal_button_css_classes (JS)

DescriptionUsageParametersExampleAdd a custom class to all buttonsSinceDescription Filter the CSS classes of buttons in the Nested Form modal. Usage Parameters buttonClasses string CSS classes for …

gplcb_should_validate_minimum

DescriptionUsageParametersSinceExamplesOnly validate minimum limit when field is required or when at least one checkbox has been checked.Description Filter whether the current field’s minimum limit be …

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’, …