• Home
  • Plugins
    • BSK PDF Manager
    • Gravity Forms Blacklist
    • Gravity Forms Custom Validation
    • Contact Form 7 to Zoho
    • Contact Form 7 Blacklist
  • Documentations
    • BSK PDF Manager
    • Gravity Forms Blacklist
    • Gravity Forms Custom Validation
    • Contact Form 7 to Zoho
    • Contact Form 7 Blacklist
  • Blog
  • Contact Us
  • Your Account
    • Purchase History
    • Checkout

Filter: bsk_pdfm_filter_ajax_loader_url

All filters and hooks should be placed in your active theme’s functions.php file

bsk_pdfm_filter_ajax_loader_url

It use AJAX to load next page's content so there's a spinner while loading. The default loader is

If your theme has a non-white background color then you may use this to your owns AJAX loader URL such as

The filter can be used to change the default AJAX loader URL in many places you may use different class to change the one you want.

bsk-pdfm-category-selector-ajax-loader is for AJAX loader of selector dropdown.

bsk-pdfm-pagination-ajax-loader is for AJAX loader of pagination.

bsk-pdfm-searchbar-ajax-loader is for AJAX loader of search bar.

Example

/**
 * Change the default AJAX loader image url
 * @var String $ajax_loader_url the defualt AJAX loader URL
 * @return new AJAX loader image url
 */
add_filter( "bsk_pdfm_filter_ajax_loader_url", "change_selector_ajax_loaer_url" );
function change_selector_ajax_loaer_url( $ajax_loader_url, $ajax_loader_span_class ) {

    if( $ajax_loader_span_class == 'bsk-pdfm-category-selector-ajax-loader' ){
        return 'https://www.bannersky.com/wp-content/uploads/2018/07/bsk-pdfm-ajax-loader-new.gif';
    }

}

Installation

  • How to install free version
  • How to install Pro version
  • How to upgrade to Pro version
  • Settings

    • Set Upload Directory
    • Multiple document formats
    • Featured image settings
    • Sort PDFs / documents by date / title / custom / last modified
    • Hierarchical Category
    • Upload

      • Upload PDF / Document
      • Bulk Upload by FTP
      • Bulk add by Media Library
      • Display all / specific

        • In list
        • In columns
        • In dropdown
        • Get specific PDFs' link only
        • Get specific PDFs' URL only
        • Display by category

          • In list
          • In columns
          • In dropdown
          • Display with category selector

            • In list
            • In columns
            • In dropdown

            Hooks

            • Hooks

            FAQ

            • FAQ
  • Licensing
  • Refund Policy
  • Affiliate Area

 

Copyright © 2021 BannerSky

BannerSky