woocommerce_analytics_excluded_order_statuses
Использование
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
- -
Где вызывается хук
woocommerce_analytics_excluded_order_statuses
woocommerce/src/Admin/API/Reports/DataStore.php 682
return apply_filters( 'woocommerce_analytics_excluded_order_statuses', $excluded_statuses );
Где используется хук в WooCommerce
woocommerce/src/Blocks/Domain/Services/DraftOrders.php 42
add_filter( 'woocommerce_analytics_excluded_order_statuses', [ $this, 'append_draft_order_post_status' ] );