Automattic\WooCommerce\Admin\API\Reports\Orders
DataStore::maybe_update_order_statuses_transient
Deprecated since 0.3.0. It is no longer supported and may be removed in future releases. Use
maybe_update_order_statuses_cache() instead.Ensure the order status will present in get_all_statuses call result.
Method of the class: DataStore{}
No Hooks.
Returns
null. Nothing (null).
Usage
$result = DataStore::maybe_update_order_statuses_transient( $order_id );
- $order_id(int) (required)
- Order ID.
Changelog
| Deprecated since 10.3.0 | Use maybe_update_order_statuses_cache(). |
DataStore::maybe_update_order_statuses_transient() DataStore::maybe update order statuses transient code WC 10.9.1
public static function maybe_update_order_statuses_transient( $order_id ) {
wc_deprecated_function( __METHOD__, '10.3.0', __CLASS__ . '::maybe_update_order_statuses_cache()' );
self::maybe_update_order_statuses_cache( $order_id );
}