woocommerce_reports_order_statuses
woocommerce_reports_order_statuses
apply_filters('woocommerce_reports_order_statuses') is found 2 times:
- /includes/admin/class-wc-admin-dashboard.php line 106
* @since 2.2.0
*
* @param string[] $order_statuses Order statuses.
*/
$order_statuses = apply_filters( ‘woocommerce_reports_order_statuses’, array( ‘completed’, ‘processing’, ‘on-hold’ ) );
$query[‘where’] .= “AND orders.{$orders_column_status} IN ( ‘wc-” . implode( “‘,’wc-“, $order_statuses ) . “‘ ) “;$query[‘where’] .= “AND order_item_meta.meta_key = ‘_qty’ “;
$query[‘where’] .= “AND order_item_meta_2.meta_key = ‘_product_id’ “;
$query[‘where’] .= “AND orders.{$orders_column_date} >= ‘” . gmdate( ‘Y-m-01’, current_time( ‘timestamp’ ) ) . “‘ “; // phpcs:ignore WordPress.DateTime.CurrentTimeTimestamp.Requested
$query[‘where’] .= “AND orders.{$orders_column_date} <= '" . gmdate( 'Y-m-d H:i:s', current_time( 'timestamp' ) ) . "' "; // phpcs:ignore WordPress.DateTime.CurrentTimeTimestamp.Requested [/php] - /includes/admin/reports/class-wc-admin-report.php line 122
if ( empty( $data ) ) { return ''; } $order_status = apply_filters( 'woocommerce_reports_order_statuses', $order_status ); $query = array(); $select = array(); foreach ( $data as $raw_key => $value ) { $key = sanitize_key( $raw_key );