woocommerce_price_filter_widget_max_amount

The Advanced AJAX Product Filter for WooCommerce woocommerce price filter widget max amount hook.

Description

apply_filters( 'woocommerce_price_filter_widget_max_amount', (unknown) $post_price_1 ); 

Parameters (1)

0. $post_price_1 (unknown)
The post price 1.

Usage

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

Defined (2)

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

/includes/widget.php  
  1. $slider_value2 = apply_filters('woocommerce_price_filter_widget_max_amount', $_POST['price'][1]); 
  1. apply_filters( 'woocommerce_price_filter_widget_max_amount', $prices->max_price )