WordPress at Your Fingertips
function is not described

WC_Product::get_availability() public WC 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 5.5.2

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