berocket_aapf_listener_no_products_message

The Advanced AJAX Product Filter for WooCommerce berocket aapf listener no products message hook.

Description

apply_filters( 'berocket_aapf_listener_no_products_message', (string) $var ); 

Parameters (1)

0. $var — Optional. (string) => "
" . $br_options['no_products_message'] . "
"
The div class no products br options no products class br options no products class br options no products message div.

Usage

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

Defined (2)

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

/includes/widget.php  
  1. echo apply_filters( 'berocket_aapf_listener_no_products_message', "<div class='no-products" . ( ( $br_options['no_products_class'] ) ? ' '.$br_options['no_products_class'] : '' ) . "'>" . $br_options['no_products_message'] . "</div>" ); 
  1. echo apply_filters( 'berocket_aapf_listener_no_products_message', "<p class='no-products woocommerce-info" . ( ( $br_options['no_products_class'] ) ? ' '.$br_options['no_products_class'] : '' ) . "'>" . $br_options['no_products_message'] . "</p>" );