Skip to content

Instantly share code, notes, and snippets.

@thomasgriffin
Last active July 12, 2019 13:07
Show Gist options
  • Save thomasgriffin/3504420 to your computer and use it in GitHub Desktop.
Save thomasgriffin/3504420 to your computer and use it in GitHub Desktop.
<?php
add_filter( 'gform_ajax_spinner_url', 'tgm_io_custom_gforms_spinner' );
/**
* Changes the default Gravity Forms AJAX spinner.
*
* @since 1.0.0
*
* @param string $src The default spinner URL.
* @return string $src The new spinner URL.
*/
function tgm_io_custom_gforms_spinner( $src ) {
return get_stylesheet_directory_uri() . '/images/loading.gif';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment