woocommerce_get_availability filter-hookWC 1.0

Returns the availability of the product.

Usage

add_filter( 'woocommerce_get_availability', 'wp_kama_woocommerce_get_availability_filter', 10, 2 );

/**
 * Function for `woocommerce_get_availability` filter-hook.
 * 
 * @param  $array 
 * @param  $that  
 *
 * @return 
 */
function wp_kama_woocommerce_get_availability_filter( $array, $that ){

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

Where the hook is called

WC_Product::get_availability()
woocommerce_get_availability
woocommerce/includes/abstracts/abstract-wc-product.php 2092-2099
return apply_filters(
	'woocommerce_get_availability',
	array(
		'availability' => $this->get_availability_text(),
		'class'        => $this->get_availability_class(),
	),
	$this
);

Where the hook is used in WooCommerce

Usage not found.