Hooks

Articles

gform_square_card_details_style

This filter from the official Gravity Forms Square Add-On allows you to control the look of the Square credit card details input.

gform_square_card_style

This filter was removed from the Square Add-On and is no longer supported. From Gravity Forms Square Add-On version 1.7, the look of the Square field can be managed via the gform_square_card_details_style filter.

gform_square_data_sync_enabled

Allows data sync to be disabled for Square Add-On. Default is Enabled.

gform_square_payment_data

The gform_square_payment_data filter in version 1.0 of the Square add-on allows you to modify the payment data before it is sent to Square.

gform_square_show_custom_app_settings

The gform_square_show_custom_app_settings filter allows displaying the custom app settings link in the Square add-on settings page.

gform_state_is_valid_url

The gform_state_is_valid_url filter allows the result of the honeypot’s source URL check to be overridden.

gform_state_lifespan

The State_Handler class generates and validates a hidden 'state' value attached to every Gravity Forms form. It prevents submitted values from being tampered with from form display through form submission, and prevents stale submissions from old form loads from being accepted.

gform_state_pre_encode

This article explains how to use the gform_state_pre_encode action hook to add values to the form state before it is encoded.

gform_stripe_api_mode

This filter allows the API mode to be set to “live” or “test”.

gform_stripe_cancel_url

Filters Stripe session’s cancel URL, which is the URL that users will be sent to after canceling the payment on Stripe.