Created
September 7, 2015 21:42
-
-
Save NikV/873407919031200a28d3 to your computer and use it in GitHub Desktop.
Custom label and change in text hover for the button
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function modify_gform_uninstall_button() { | |
return '<input type="submit" name="uninstall" value="' . esc_attr__( 'Say Goodbye to Gravity Forms', 'gravityforms' ) . '" class="button" onclick="return confirm(\'' . esc_js( __( "Hi Client, just a quick Warning. ALL Gravity Forms data, including form entries will be deleted. This cannot be undone. 'OK' to delete, 'Cancel' to stop. If you'd like to keep anything, please export your form data", 'gravityforms' ) ) . '\');"/>'; | |
} | |
add_filter('gform_uninstall_button', 'modify_gform_uninstall_button'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment