WordPress at a glance
filter is not described

woocommerce_rest_prepare_leaderboard filter-hook . WC 1.0

Filter the list returned from the API.


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

	return $response;
The response object.
The original item.
Request used to generate the response.

Where the hook is called

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.