WC_Abstract_Privacy::init()protectedWC 1.0

Hook in events.

Метод класса: WC_Abstract_Privacy{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->init();

Код WC_Abstract_Privacy::init() WC 8.7.0

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 );
}