WordPress at Your Fingertips
function is not described

WC_Privacy::queue_cleanup_personal_data() public WC 1.0

Spawn events for order cleanup.

{} It's a method of the class: WC_Privacy{}

No Hooks.

Return

null. Nothing.

Usage

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

Code of WC_Privacy::queue_cleanup_personal_data() WC 5.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();
}