Created
October 21, 2021 14:19
-
-
Save daomapsieucap/db936c5655f21d3256860f7b644652cb to your computer and use it in GitHub Desktop.
Override Gravity Forms Spinner by wp_localize_script (replace [my_spinner_url] with your spinner URL)
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
| <?php | |
| /** | |
| * Gravity Form spinner | |
| */ | |
| add_action("gform_enqueue_scripts", "dc_gform_spinner", 10, 2); | |
| function dc_gform_spinner($form, $is_ajax){ | |
| $new_spinner = array("spinnerUrl":"[my_spinner_url]"); | |
| wp_localize_script('gform_gravityforms', 'gf_global', $new_spinner); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment