Documentation Category: Hook

gpi_scope_field_options

Filter the options available in a scope’s drop down on the Inventory page. Useful when a scope field’s values are populated programmatically (e.g. a Hidden field) and the desired options can be neither derived from the field’s choices nor found in previously submitted entries.

gcoai_request_headers

Filter the headers for requests sent to the OpenAI API.

gpi_field_inventory

Filter a field’s available inventory. Fields without inventory tracking enabled are passed as null; return an integer to provide their inventory.

gfcb_localized_script_data

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.

gpaa_compute_routes_request

Filter the request body sent to Google’s Compute Routes endpoint.

gpaa_travel_estimate_template

Filter the template used to render a Travel Estimate field’s content. Use the {distance} and {time} tags to control the order and wording, e.g. “{time} ({distance})”. Only reference estimates that are active for the field’s Estimate Type. A tag for an inactive estimate renders empty, so surrounding literals (such as brackets) would remain.

gpb_max_duration

Filter the maximum booking duration. This can be used to change the enforced maximum for a role or other request context without changing the Service setting.

gpb_min_duration

Filter the minimum booking duration. This can be used to change the enforced minimum for a role or other request context without changing the Service setting.

gpb_min_block_size

Filter the minimum allowed block size. This can be used to opt into smaller block sizes for specific installs or services. Core defaults to 5 minutes.

gcoai_show_tool_input

Whether to stream the code the Code Interpreter tool runs into the field output.

gcoai_chat_completions_models

Filter the models offered for text generation. Named for Chat Completions for historical reasons; it governs the Responses endpoint and OpenAI Stream fields too, since all of them accept the same models and share this one list.

gcoai_deprecated_models

Filter the text models OpenAI is shutting down, keyed by shutdown date in `Y-m-d` format. A model listed here is hidden from the model list unless already selected, labelled as deprecated when shown, and warned about on the feed and in the form editor.

gps_max_snaps

Filter the maximum number of generated snap positions for numeric sliders. When the configured range and step would produce more positions than this cap, positions are sampled evenly across the range using a step-aligned increment; the max value is always included. Raising the cap increases PHP memory usage on large ranges and can exhaust it entirely.

gcoai_capture_assistants_enabled

Filter whether GC OpenAI captures Assistant configurations from OpenAI. Configurations are captured so feeds and fields can be migrated to the Responses API after OpenAI shuts the Assistants API down on August 26th, 2026.

gpb_is_bookings_admin

Filter whether a user is considered a GP Bookings admin.