Automattic\WooCommerce\Internal\Admin\Schedulers
OrdersScheduler::get_failed_order_imports
Get the recorded failed order imports.
Метод класса: OrdersScheduler{}
Хуков нет.
Возвращает
array. Array with 'ids' (int[]) and 'overflow' (int) keys.
Использование
$result = OrdersScheduler::get_failed_order_imports(): array;
Список изменений
| С версии 11.0.0 | Введена. |
Код OrdersScheduler::get_failed_order_imports() OrdersScheduler::get failed order imports WC 11.3.0
public static function get_failed_order_imports(): array {
$value = get_option( self::FAILED_ORDER_IMPORTS_OPTION, array() );
if ( ! is_array( $value ) ) {
$value = array();
}
return array(
'ids' => isset( $value['ids'] ) && is_array( $value['ids'] ) ? array_map( 'absint', $value['ids'] ) : array(),
'overflow' => isset( $value['overflow'] ) ? absint( $value['overflow'] ) : 0,
);
}