gform_notes_apply_button

Description

The gform_notes_apply_button filter can be used to modify the HTML for the “Apply” button that appears in the entry notes section when bulk actions are available.

Usage

add_filter( 'gform_notes_apply_button', 'your_function_name' );

Parameters

ParameterTypeDescription
$apply_buttonstringThe HTML for the Apply button. Default contains an input button with the text “Apply” that triggers bulk actions.

Examples

Customize the Apply button styling and text.

add_filter( 'gform_notes_apply_button', 'customize_notes_apply_button' );

function customize_notes_apply_button( $apply_button ) {
    $custom_button = '<input type="submit" class="button button-primary" value="' . esc_attr__( 'Execute Bulk Action', 'gravityforms' ) . '" onclick="jQuery(\'#action\').val(\'bulk\');" />';
    
    return $custom_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 entry_detail.php