woocommerce_analytics_excluded_order_statuses хук-фильтрWC 1.0

Использование

add_filter( 'woocommerce_analytics_excluded_order_statuses', 'wp_kama_woocommerce_analytics_excluded_order_statuses_filter' );

/**
 * Function for `woocommerce_analytics_excluded_order_statuses` filter-hook.
 * 
 * @param  $excluded_statuses 
 *
 * @return 
 */
function wp_kama_woocommerce_analytics_excluded_order_statuses_filter( $excluded_statuses ){

	// filter...
	return $excluded_statuses;
}
$excluded_statuses
-

Где вызывается хук

DataStore::get_excluded_report_order_statuses()
woocommerce_analytics_excluded_order_statuses
woocommerce/src/Admin/API/Reports/DataStore.php 668
return apply_filters( 'woocommerce_analytics_excluded_order_statuses', $excluded_statuses );

Где используется хук в WooCommerce

woocommerce/packages/woocommerce-blocks/src/Domain/Services/DraftOrders.php 42
add_filter( 'woocommerce_analytics_excluded_order_statuses', [ $this, 'append_draft_order_post_status' ] );