OrdersScheduler::get_items()public staticWC 1.0

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

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

Хуков нет.


null. Ничего (null).


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

Код OrdersScheduler::get_items() WC 8.9.3

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 );