WordPress at Your Fingertips
function is not described

WC_Privacy::__construct() public WC 1.0

Init - hook into events.

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

No Hooks.

Return

null. Nothing.

Usage

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

Code of WC_Privacy::__construct() WC 5.9.0

public function __construct() {
	parent::__construct();

	// Initialize data exporters and erasers.
	add_action( 'plugins_loaded', array( $this, 'register_erasers_exporters' ) );

	// Cleanup orders daily - this is a callback on a daily cron event.
	add_action( 'woocommerce_cleanup_personal_data', array( $this, 'queue_cleanup_personal_data' ) );

	// Handles custom anonomization types not included in core.
	add_filter( 'wp_privacy_anonymize_data', array( $this, 'anonymize_custom_data_types' ), 10, 3 );

	// When this is fired, data is removed in a given order. Called from bulk actions.
	add_action( 'woocommerce_remove_order_personal_data', array( 'WC_Privacy_Erasers', 'remove_order_personal_data' ) );
}