Using Gravity Forms ‘gform_save_zapier_button’ PHP filter

The gform_save_zapier_button Gravity Forms PHP filter allows you to modify the Zapier Feed save button.

Usage

add_filter('gform_save_zapier_button', 'your_function_name', 10, 1);

Parameters

  • $zapier_button (string): The HTML rendered for the save button.

More information

See Gravity Forms Docs: gform_save_zapier_button

Examples

Change Save Button Text

This example changes the save button text to “Save Your Feed”:

add_filter('gform_save_zapier_button', 'change_save_button', 10, 1);

function change_save_button($zapier_button) {
    return '<input class="button-primary" type="submit" value="Save Your Feed" name="save"/>';
}

Add Custom CSS Class

This example adds a custom CSS class to the save button:

add_filter('gform_save_zapier_button', 'add_custom_css_class', 10, 1);

function add_custom_css_class($zapier_button) {
    return '<input class="button-primary custom-css-class" type="submit" value="Save" name="save"/>';
}

Add Data Attribute

This example adds a data attribute to the save button:

add_filter('gform_save_zapier_button', 'add_data_attribute', 10, 1);

function add_data_attribute($zapier_button) {
    return '<input class="button-primary" type="submit" value="Save" name="save" data-custom-attr="example"/>';
}

Change Button Type

This example changes the save button type to “button”:

add_filter('gform_save_zapier_button', 'change_button_type', 10, 1);

function change_button_type($zapier_button) {
    return '<input class="button-primary" type="button" value="Save" name="save"/>';
}

Remove Button

This example removes the save button completely:

add_filter('gform_save_zapier_button', 'remove_save_button', 10, 1);

function remove_save_button($zapier_button) {
    return '';
}