Hooks

Articles

gform_max_async_task_attempts

The gform_max_async_task_attempts filter allows developers to set the number of retries to be modified before the task is abandoned.

gform_mcp_public_ability

The gform_mcp_public_ability filter controls per-ability MCP visibility, applied at registration. It runs before the settings-screen gate, so it can hide a tool entirely but can't expose one the admin hasn't enabled.

gform_mcp_registered_addons

The gform_mcp_registered_addons filter is a last-mile hook over the add-on MCP contributions (the per-add-on tool groups shown on the settings screen). Entries are keyed by namespace. It’s mostly for add-on developers, though a site can also use it to drop an add-on’s tools wholesale.

gform_mcp_server_tools

The gform_mcp_server_tools filter has the final say on which enabled tools the dedicated Gravity Forms MCP server lists to connected agents.

gform_media_upload_path

This filter can be used to change the location where files uploaded using the Post Image field are copied to when the post is created.

gform_menu_position

Modify the position the Gravity Forms menu should appear in the WordPress admin menu.

gform_merge_tag_data

Description.

gform_merge_tag_filter

Use this filter to dynamically change the merge tag output. Useful when filtering field types from being displayed in the {all_fields} merge tag, or implementing custom field types that require the merge tag output to be different from the value stored with the entry.

gform_merge_tag_list_exclude

The gform_merge_tag_list_exclude filter allows developers to exclude field types from the merge tag drop-downs that are displayed throughout the admin pages.

gform_merge_tag_value_pre_calculation

Description.