WC_Product::get_availability()publicWC 1.0

Returns the availability of the product.

{} It's a method of the class: WC_Product{}

Hooks from the method

Return

String[].

Usage

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

Code of WC_Product::get_availability() WC 6.8.2

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