WC_Abstract_Privacy::init()protectedWC 1.0

Hook in events.

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

No Hooks.


null. Nothing.


// protected - for code of main (parent) or child class
$result = $this->init();

Code of WC_Abstract_Privacy::init() WC 6.8.2

protected function init() {
	add_action( 'admin_init', array( $this, 'add_privacy_message' ) );
	// We set priority to 5 to help WooCommerce's findings appear before those from extensions in exported items.
	add_filter( 'wp_privacy_personal_data_exporters', array( $this, 'register_exporters' ), $this->export_priority );
	add_filter( 'wp_privacy_personal_data_erasers', array( $this, 'register_erasers' ), $this->erase_priority );