esc_html__( 'Order', 'understrap' ), 'order-date' => esc_html__( 'Date', 'understrap' ), 'order-status' => esc_html__( 'Status', 'understrap' ), 'order-total' => esc_html__( 'Total', 'understrap' ), 'order-actions' => ' ', ) ); $customer_orders = get_posts( apply_filters( 'woocommerce_my_account_my_orders_query', array( 'numberposts' => $order_count, 'meta_key' => '_customer_user', // phpcs:ignore WordPress.DB.SlowDBQuery 'meta_value' => get_current_user_id(), // phpcs:ignore WordPress.DB.SlowDBQuery 'post_type' => wc_get_order_types( 'view-orders' ), 'post_status' => array_keys( wc_get_order_statuses() ), ) ) ); if ( $customer_orders ) : ?>
get_order_number(); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> get_status() ) ); ?> get_formatted_order_total(), $item_count ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> $orders_action ) { echo '' . esc_html( $orders_action['name'] ) . ''; } } ?> |