woocommerce_rest_performance_indicators_jetpack_items filter-hookWC 1.0

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

Controller::get_jetpack_modules_data()
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',
		),
	)
);

Where the hook is used in WooCommerce

Usage not found.