Automattic\WooCommerce\Internal\DataStores\Orders
DataSynchronizer::handle_feature_description_tip()
Method of the class: DataSynchronizer{}
No Hooks.
Return
null
. Nothing (null).
Usage
$DataSynchronizer = new DataSynchronizer(); $DataSynchronizer->;
DataSynchronizer::handle_feature_description_tip() DataSynchronizer::handle feature description tip code WC 9.6.0
foreach ( $orders as $order ) { if ( $order->get_status() !== 'trash' ) { continue; } if ( $order->get_date_modified()->getTimestamp() >= $delete_timestamp ) { continue; } $order->delete( true ); } } }