br_filters

The Advanced AJAX Product Filters for WooCommerce br filters shortcode.


Usage

  1. // basic usage 
  2. echo do_shortcode('[br_filters]'); 
  1. // variable usage 
  2. $result = do_shortcode('[br_filters]'); 
  3. echo $result;  

Defined (1)

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

/woocommerce-filters.php  
  1. add_action( 'admin_menu', array( __CLASS__, 'br_add_options_page' ) ); 
  2. add_action( 'admin_init', array( __CLASS__, 'register_br_options' ) ); 
  3. add_action( 'init', array( __CLASS__, 'init' ) ); 
  4.  
  5. add_shortcode( 'br_filters', array( __CLASS__, 'shortcode' ) ); 
  6.  
  7. if( @ $_GET['filters'] and ! @ defined( 'DOING_AJAX' ) ) { 
  8. add_filter( 'pre_get_posts', array( __CLASS__, 'apply_user_price' ) ); 
  9. add_filter( 'pre_get_posts', array( __CLASS__, 'apply_user_filters' ), 99999 );