Automattic\WooCommerce\Internal\Admin\Schedulers

OrdersScheduler::get_items()public staticWC 1.0

Get the order/refund IDs and total count that need to be synced.

Метод класса: OrdersScheduler{}

Хуков нет.

Возвращает

null. Ничего.

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

$result = OrdersScheduler::get_items( $limit, $page, $days, $skip_existing );
$limit(int)
Number of records to retrieve.
По умолчанию: 10
$page(int)
Page number.
По умолчанию: 1
$days(int|true|false)
Number of days prior to current date to limit search results.
По умолчанию: false
$skip_existing(true|false)
Skip already imported orders.
По умолчанию: false

Код OrdersScheduler::get_items() WC 7.3.0

public static function get_items( $limit = 10, $page = 1, $days = false, $skip_existing = false ) {
	if ( OrderUtil::custom_orders_table_usage_is_enabled() ) {
		return self::get_items_from_orders_table( $limit, $page, $days, $skip_existing );
	} else {
		return self::get_items_from_posts_table( $limit, $page, $days, $skip_existing );
	}
}