• Home
  • Plugins
    • BSK PDF Manager
    • BSK Forms Blacklist
    • BSK Forms Validation
  • Documentations
    • BSK PDF Manager
    • BSK Forms Blacklist
    • BSK Forms Validation
  • Blog
  • Contact Us
  • Your Account
    • Purchase History
    • Checkout

Filter: bsk_pdfm_filter_selector_option_prefix

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

bsk_pdfm_filter_selector_option_prefix

When show categories selector and hierarchical enabled there's a prefix text before category title. You may use this filter to change the default prefix.

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_selector_option_prefix", "change_selector_option_prefix", 10, 2 );
function change_selector_option_prefix( $default_prefix, $current_depth ) {

    if( $current_depth == 1 ){
        return '++++ ';
    }
    
    if( $current_depth == 2 ){
        return '++++++++ ';
    }
}

Example Result

Installation

  • How to install free version
  • How to install Pro version
  • How to upgrade to Pro version
  • Check version and update automatically
  • Update new version manually
  • Settings

    • Set Upload Directory
    • Multiple document formats
    • Featured image settings
    • Permalink settings
    • Sort PDFs / documents by date / title / custom / last modified
    • Hierarchical Category
    • Capability settings
    • User Available Categories
    • Embedded Viewer
    • Upload

      • Upload PDF / Document
      • Bulk Upload by FTP
      • Bulk add by Media Library
      • Generate thumbnail of PDF
      • Notification

        • Auto on new uploaded
        • Notify admin to approve PDF/document
        • 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
              • Embed PDF into Post / Page

                • Display PDF by embedding

                Hooks

                • Hooks

                FAQ

                • FAQ
  • Licensing
  • Refund Policy
  • Affiliate Area

 

Copyright © 2025 BannerSky

BannerSky