gform_choices_setting_title

Description

The gform_choices_setting_title filter allows developers to change the “Choices” settings title in the admin for fields that have choices (drop-down, radio button, checkboxes, multi-select, product option).

Usage

add_filter( 'gform_choices_setting_title', 'change_title' );

Parameters

ParameterTypeDescription
$titlestringThe current title of the “Choices” setting.

Examples

Change the setting title.

This example changes the title from “Choices” to “My Custom Title”.

add_filter( 'gform_choices_setting_title', 'change_title' );
function change_title( $title ) {
	return 'My Custom Title';
}

Placement

This code can be used in the functions.php file of the active theme, a custom functions plugin, a custom add-on, or with a code snippets plugin.

See also the PHP section in this article: Where Do I Put This Code?

Source Code

This filter is located in form_detail.php.