gform_currency_setting_message

Description

The gform_currency_setting_message action hook is used to add a message after the currency drop down within the Settings page.

Usage

add_action( 'gform_currency_setting_message', 'currency_message' );

Parameters

  • $message string

    The default message. An empty string.

Examples

This example adds a message below the currency drop down.

add_action( 'gform_currency_setting_message', 'currency_message' );
function currency_message() {
    esc_html_e( 'US Dollars is the only supported currency by this payment gateway.', 'your_text_domain_here' );
}

Placement

This code should be placed in the functions.php file of your active theme.

Source Code

This action hook was originally located in GFSettings::gravityforms_settings_page() in settings.php. In Gravity Forms 2.5 it was moved to GFSetting::currency_message_callback().