woocommerce_rest_performance_indicators_jetpack_items
Usage
add_filter( 'woocommerce_rest_performance_indicators_jetpack_items', 'wp_kama_woocommerce_rest_performance_indicators_jetpack_items_filter' ); /** * Function for `woocommerce_rest_performance_indicators_jetpack_items` filter-hook. * * @param $array * * @return */ function wp_kama_woocommerce_rest_performance_indicators_jetpack_items_filter( $array ){ // filter... return $array; }
- $array
- -
Where the hook is called
woocommerce_rest_performance_indicators_jetpack_items
woocommerce/src/Admin/API/Reports/PerformanceIndicators/Controller.php 206-222
$items = apply_filters( 'woocommerce_rest_performance_indicators_jetpack_items', array( 'stats/visitors' => array( 'label' => __( 'Visitors', 'woocommerce' ), 'permission' => 'view_stats', 'format' => 'number', 'module' => 'stats', ), 'stats/views' => array( 'label' => __( 'Views', 'woocommerce' ), 'permission' => 'view_stats', 'format' => 'number', 'module' => 'stats', ), ) );