WC_Product::get_availability()publicWC 1.0

Returns the availability of the product.

Method of the class: WC_Product{}

Hooks from the method

Return

String[].

Usage

$WC_Product = new WC_Product();
$WC_Product->get_availability();

WC_Product::get_availability() code WC 8.7.0

public function get_availability() {
	return apply_filters(
		'woocommerce_get_availability',
		array(
			'availability' => $this->get_availability_text(),
			'class'        => $this->get_availability_class(),
		),
		$this
	);
}