WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

WC_Privacy::__construct() public WC 1.0

Init - hook into events.

{} Это метод класса: WC_Privacy{}

Хуков нет.

Возвращает

Null. Ничего.

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

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

Код WC_Privacy::__construct() WC 4.7.0

<?php
public function __construct() {
	parent::__construct( __( 'WooCommerce', 'woocommerce' ) );

	if ( ! self::$background_process ) {
		self::$background_process = new WC_Privacy_Background_Process();
	}

	// Include supporting classes.
	include_once __DIR__ . '/class-wc-privacy-erasers.php';
	include_once __DIR__ . '/class-wc-privacy-exporters.php';

	// This hook registers WooCommerce data exporters.
	$this->add_exporter( 'woocommerce-customer-data', __( 'WooCommerce Customer Data', 'woocommerce' ), array( 'WC_Privacy_Exporters', 'customer_data_exporter' ) );
	$this->add_exporter( 'woocommerce-customer-orders', __( 'WooCommerce Customer Orders', 'woocommerce' ), array( 'WC_Privacy_Exporters', 'order_data_exporter' ) );
	$this->add_exporter( 'woocommerce-customer-downloads', __( 'WooCommerce Customer Downloads', 'woocommerce' ), array( 'WC_Privacy_Exporters', 'download_data_exporter' ) );
	$this->add_exporter( 'woocommerce-customer-tokens', __( 'WooCommerce Customer Payment Tokens', 'woocommerce' ), array( 'WC_Privacy_Exporters', 'customer_tokens_exporter' ) );

	// This hook registers WooCommerce data erasers.
	$this->add_eraser( 'woocommerce-customer-data', __( 'WooCommerce Customer Data', 'woocommerce' ), array( 'WC_Privacy_Erasers', 'customer_data_eraser' ) );
	$this->add_eraser( 'woocommerce-customer-orders', __( 'WooCommerce Customer Orders', 'woocommerce' ), array( 'WC_Privacy_Erasers', 'order_data_eraser' ) );
	$this->add_eraser( 'woocommerce-customer-downloads', __( 'WooCommerce Customer Downloads', 'woocommerce' ), array( 'WC_Privacy_Erasers', 'download_data_eraser' ) );
	$this->add_eraser( 'woocommerce-customer-tokens', __( 'WooCommerce Customer Payment Tokens', 'woocommerce' ), array( 'WC_Privacy_Erasers', 'customer_tokens_eraser' ) );

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