WordPress at a glance
filter is not described

woocommerce_rest_prepare_leaderboard filter-hook . WC 1.0

Filter the list returned from the API.

Usage

add_filter( 'woocommerce_rest_prepare_leaderboard', 'filter_function_name_5441', 10, 3 );
function filter_function_name_5441( $response, $item, $request ){
	// filter...

	return $response;
}
$response(WP_REST_Response)
The response object.
$item(array)
The original item.
$request(WP_REST_Request)
Request used to generate the response.

Where the hook is called

Leaderboards::prepare_item_for_response()
woocommerce_rest_prepare_leaderboard
woocommerce/packages/woocommerce-admin/src/API/Leaderboards.php 424
return apply_filters( 'woocommerce_rest_prepare_leaderboard', $response, $item, $request );

Where in WP core the hook is used WooCommerce

Usage not found.