Automattic\WooCommerce\Admin\API
Leaderboards::get_public_allowed_item_schema
Get schema for the list of allowed leaderboards.
Method of the class: Leaderboards{}
No Hooks.
Returns
Array. $schema
Usage
$Leaderboards = new Leaderboards(); $Leaderboards->get_public_allowed_item_schema();
Leaderboards::get_public_allowed_item_schema() Leaderboards::get public allowed item schema code WC 10.3.3
public function get_public_allowed_item_schema() {
$schema = $this->get_public_item_schema();
unset( $schema['properties']['rows'] );
return $schema;
}