Automattic\WooCommerce\Admin\API
ProductsLowInStock::get_low_in_stock_count_schema()
Get the schema for /count-low-in-stock response.
Метод класса: ProductsLowInStock{}
Хуков нет.
Возвращает
Массив
.
Использование
$ProductsLowInStock = new ProductsLowInStock(); $ProductsLowInStock->get_low_in_stock_count_schema();
Код ProductsLowInStock::get_low_in_stock_count_schema() ProductsLowInStock::get low in stock count schema WC 9.3.3
public function get_low_in_stock_count_schema() { return array( '$schema' => 'http://json-schema.org/draft-04/schema#', 'title' => 'Count Low in Stock Items', 'type' => 'object', 'properties' => array( 'type' => 'object', 'properties' => array( 'total' => 'integer', ), ), ); }