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.

Method of the class: OrdersScheduler{}

No Hooks.

Return

null. Nothing.

Usage

$result = OrdersScheduler::get_items( $limit, $page, $days, $skip_existing );
$limit(int)
Number of records to retrieve.
Default: 10
$page(int)
Page number.
Default: 1
$days(int|true|false)
Number of days prior to current date to limit search results.
Default: false
$skip_existing(true|false)
Skip already imported orders.
Default: false

OrdersScheduler::get_items() code 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 );
	}
}