WordPress at a glance
function is not described

Automattic\WooCommerce\Admin\API

Leaderboards::get_leaderboards() public WC 1.0

Get an array of all leaderboards.

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

Hooks from the method
Return

Array. Nothing.

Usage

$Leaderboards = new Leaderboards();
$Leaderboards->get_leaderboards( $per_page, $after, $before, $persisted_query );
$per_page(int) (required)
Number of rows.
$after(string) (required)
Items after date.
$before(string) (required)
Items before date.
$persisted_query(string) (required)
URL query string.

Code of Leaderboards::get_leaderboards() WC 5.3.0

<?php
public function get_leaderboards( $per_page, $after, $before, $persisted_query ) {
	$leaderboards = array(
		$this->get_customers_leaderboard( $per_page, $after, $before, $persisted_query ),
		$this->get_coupons_leaderboard( $per_page, $after, $before, $persisted_query ),
		$this->get_categories_leaderboard( $per_page, $after, $before, $persisted_query ),
		$this->get_products_leaderboard( $per_page, $after, $before, $persisted_query ),
	);

	return apply_filters( 'woocommerce_leaderboards', $leaderboards, $per_page, $after, $before, $persisted_query );
}