Automattic\WooCommerce\Admin\API

Leaderboards::get_public_allowed_item_schema()publicWC 1.0

Get schema for the list of allowed leaderboards.

{} Это метод класса: Leaderboards{}

Хуков нет.

Возвращает

Массив. $schema

Использование

$Leaderboards = new Leaderboards();
$Leaderboards->get_public_allowed_item_schema();

Код Leaderboards::get_public_allowed_item_schema() WC 6.6.1

public function get_public_allowed_item_schema() {
	$schema = $this->get_public_item_schema();
	unset( $schema['properties']['rows'] );
	return $schema;
}