woocommerce_leaderboards
Usage
add_filter( 'woocommerce_leaderboards', 'wp_kama_woocommerce_leaderboards_filter', 10, 5 ); /** * Function for `woocommerce_leaderboards` filter-hook. * * @param $leaderboards * @param $per_page * @param $after * @param $before * @param $persisted_query * * @return */ function wp_kama_woocommerce_leaderboards_filter( $leaderboards, $per_page, $after, $before, $persisted_query ){ // filter... return $leaderboards; }
- $leaderboards
- -
- $per_page
- -
- $after
- -
- $before
- -
- $persisted_query
- -
Where the hook is called
woocommerce_leaderboards
woocommerce/src/Admin/API/Leaderboards.php 389
return apply_filters( 'woocommerce_leaderboards', $leaderboards, $per_page, $after, $before, $persisted_query );