gmb_ajax_preloader_img

The Maps Builder gmb ajax preloader img hook.

Description

apply_filters( 'gmb_ajax_preloader_img', (unknown) $gmb_plugin_url_assets_images_spinner_gif ); 

Parameters (1)

0. $gmb_plugin_url_assets_images_spinner_gif (unknown) => GMB_PLUGIN_URL . 'assets/images/spinner.gif'
The gmb plugin url assets images spinner gif.

Usage

To run the hook, copy the example below.
  1. $gmb_plugin_url_assets_images_spinner_gif = apply_filters( 'gmb_ajax_preloader_img', $gmb_plugin_url_assets_images_spinner_gif ); 
  2.  
  3. if ( !empty( $gmb_plugin_url_assets_images_spinner_gif ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the gmb_ajax_preloader_img callback 
  2. function filter_gmb_ajax_preloader_img( $gmb_plugin_url_assets_images_spinner_gif ) { 
  3. // make filter magic happen here... 
  4. return $gmb_plugin_url_assets_images_spinner_gif
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'gmb_ajax_preloader_img', 'filter_gmb_ajax_preloader_img', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'gmb_ajax_preloader_img', 'filter_gmb_ajax_preloader_img', 10, 1 ); 

Defined (1)

The filter is defined in the following location(s).

/vendor/wordimpress/maps-builder-core/includes/class-gmc-admin-scripts.php  
  1. 'ajax_loader' => set_url_scheme( apply_filters( 'gmb_ajax_preloader_img', GMB_PLUGIN_URL . 'assets/images/spinner.gif' ), 'relative' ),