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.


null. Nothing.


$result = OrdersScheduler::get_items( $limit, $page, $days, $skip_existing );
Number of records to retrieve.
Default: 10
Page number.
Default: 1
Number of days prior to current date to limit search results.
Default: 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 );