Automattic\WooCommerce\Internal\Admin\Schedulers

CustomersScheduler::schedule_anonymize()public staticWC 1.0

Schedule an action to anonymize a single Order.

Method of the class: CustomersScheduler{}

No Hooks.

Return

null. Nothing.

Usage

$result = CustomersScheduler::schedule_anonymize( $order );
$order(WC_Order) (required)
Order object.

CustomersScheduler::schedule_anonymize() code WC 7.3.0

public static function schedule_anonymize( $order ) {
	if ( is_a( $order, 'WC_Order' ) ) {
		// Postpone until any pending updates are completed.
		self::schedule_action( 'anonymize', array( $order->get_id() ) );
	}
}