Description
Filters through and allows modification of the Save button HTML for the overall Gravity Forms Settings.
Usage
sprintf( '<button type="submit" id="gform-settings-save" name="gform-settings-save" value="save" form="gform-settings" class="%2$s"%3$s>%1$s</button>',
esc_html( rgar( $save_props, 'value' ) ),
esc_attr( $save_props['class'] ),
! $this->is_dependency_met( rgar( $save_props, 'dependency' ) ) ? 'style="display:none;"' : ''
);
Parameters
- $save_button string
The HTML rendered for the Save button.
Placement
This code should be placed in the functions.php file of your active theme.
Source Code
This filter is located in GFSettings::page_header() in settings.php.