Forked from mattradford/gravity_forms_filter_spinner.php
Created
August 8, 2016 17:15
-
-
Save lukecav/b279ef8a7417fdac8014a61d849c8a9a to your computer and use it in GitHub Desktop.
Filters the Gravity Forms spinner and replaces it with a base64-encoded blank image
This file contains 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 gf_spinner_replace( $image_src, $form ) { | |
return 'data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7'; // relative to you theme images folder | |
} | |
add_filter( 'gform_ajax_spinner_url', 'gf_spinner_replace', 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment