WC_Privacy::queue_cleanup_personal_data()publicWC 1.0

Spawn events for order cleanup.

Method of the class: WC_Privacy{}

No Hooks.

Return

null. Nothing (null).

Usage

$WC_Privacy = new WC_Privacy();
$WC_Privacy->queue_cleanup_personal_data();

WC_Privacy::queue_cleanup_personal_data() code WC 8.9.0

public function queue_cleanup_personal_data() {
	self::$background_process->push_to_queue( array( 'task' => 'trash_pending_orders' ) );
	self::$background_process->push_to_queue( array( 'task' => 'trash_failed_orders' ) );
	self::$background_process->push_to_queue( array( 'task' => 'trash_cancelled_orders' ) );
	self::$background_process->push_to_queue( array( 'task' => 'anonymize_completed_orders' ) );
	self::$background_process->push_to_queue( array( 'task' => 'delete_inactive_accounts' ) );
	self::$background_process->save()->dispatch();
}