Description
This filter can be used to change the default AJAX spiner image
Usage
<?php
add_action("gform_ajax_spinner_url", "custom_spinner_image", 10, 2);
?>
You can also specify this per form by adding the form id after the hook name.
<?php
add_action("gform_ajax_spinner_url_6", "custom_spinner_image", 10, 2);
?>
Parameters
$image_src
- (string) The spinner image URL to be filtered
$form
- (Form Object) Current form.
Examples
This example changes the spinner image to a custom file
<?php
add_filter("gform_ajax_spinner_url", "spinner_url", 10, 2);
function spinner_url($image_src, $form){
return "http://www.somedomain.com/spinner.png";
}
?>
Source Code
This filter is located in form_display.php