Server IP : 172.67.158.161 / Your IP : 18.217.0.59 Web Server : LiteSpeed System : Linux business53.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : giankuin ( 1871) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /proc/self/root/home/giankuin/khowordpress.com/wp-content/plugins/woocommerce/src/Admin/RemoteInboxNotifications/ |
Upload File : |
<?php /** * Provider for order-related queries and operations. */ namespace Automattic\WooCommerce\Admin\RemoteInboxNotifications; defined( 'ABSPATH' ) || exit; /** * Provider for order-related queries and operations. */ class OrdersProvider { /** * Allowed order statuses for calculating milestones. * * @var array */ protected $allowed_statuses = array( 'pending', 'processing', 'completed', ); /** * Returns the number of orders. * * @return integer The number of orders. */ public function get_order_count() { $status_counts = array_map( 'wc_orders_count', $this->allowed_statuses ); $orders_count = array_sum( $status_counts ); return $orders_count; } }