woocommerce_get_availability_class filter-hookWC 1.0

Usage

add_filter( 'woocommerce_get_availability_class', 'wp_kama_woocommerce_get_availability_class_filter', 10, 2 );

/**
 * Function for `woocommerce_get_availability_class` filter-hook.
 * 
 * @param  $class 
 * @param  $that  
 *
 * @return 
 */
function wp_kama_woocommerce_get_availability_class_filter( $class, $that ){

	// filter...
	return $class;
}
$class
-
$that
-

Where the hook is called

WC_Product::get_availability_class()
woocommerce_get_availability_class
woocommerce/includes/abstracts/abstract-wc-product.php 2135
return apply_filters( 'woocommerce_get_availability_class', $class, $this );

Where the hook is used in WooCommerce

Usage not found.