gform_uninstall_button
Allows for the modification of the Gravity Forms uninstall button.
Description
Parameters (1)
- 0. $uninstall_button (string)
- The HTML of the uninstall button
Usage
- To run the hook, copy the example below.
- $uninstall_button = apply_filters( 'gform_uninstall_button', $uninstall_button );
- if ( !empty( $uninstall_button ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the gform_uninstall_button callback
- function filter_gform_uninstall_button( $uninstall_button ) {
- // make filter magic happen here...
- return $uninstall_button;
- };
- // add the filter
- add_filter( 'gform_uninstall_button', 'filter_gform_uninstall_button', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( 'gform_uninstall_button', 'filter_gform_uninstall_button', 10, 1 );
Defined (1)
The filter is defined in the following location(s).
- /settings.php
- echo apply_filters( 'gform_uninstall_button', $uninstall_button );