berocket_min_max_filter

The Advanced AJAX Product Filter for WooCommerce berocket min max filter hook.

Description

apply_filters( 'berocket_min_max_filter', (unknown) $post_price ); 

Parameters (1)

0. $post_price (unknown)
The post price.

Usage

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

Defined (2)

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

/includes/widget.php  
  1. $_POST['price'] = apply_filters('berocket_min_max_filter', $_POST['price']); 
/includes/functions.php  
  1. $_POST['price'] = apply_filters('berocket_min_max_filter', array( $min, $max ));