gform_entrydetail_update_button

Description

The gform_entrydetail_update_button filter lets you customize the HTML for the update/edit button that appears on the entry detail page.

Usage

add_filter( 'gform_entrydetail_update_button', 'your_function_name' );

Parameters

ParameterTypeDescription
$update_buttonstringThe HTML rendered for the Entry Detail update button.

Examples

Change the update button text and styling.

add_filter( 'gform_entrydetail_update_button', 'custom_update_button' );
function custom_update_button( $update_button ) {
    // Replace the button text and add custom styling    
    return $update_button;
}

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 includes/functions_include.php