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

WC_Settings_Tracking::add_option_to_whitelist() public WC 1.0

Add a WooCommerce option name to our whitelist and attach the update_option hook. Rather than inspecting every updated option and pattern matching for "woocommerce", just build a dynamic whitelist for WooCommerce options that might get updated.

See woocommerce_update_option hook.

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

Хуков нет.

Возвращает

Null. Ничего.

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

$WC_Settings_Tracking = new WC_Settings_Tracking();
$WC_Settings_Tracking->add_option_to_whitelist( $option );
$option(массив) (обязательный)
WooCommerce option (config) that might get updated.

Код WC_Settings_Tracking::add_option_to_whitelist() WC 4.5.2

woocommerce/includes/tracks/events/class-wc-settings-tracking.php
<?php
public function add_option_to_whitelist( $option ) {
	$this->whitelist[] = $option['id'];

	// Delay attaching this action since it could get fired a lot.
	if ( false === has_action( 'update_option', array( $this, 'track_setting_change' ) ) ) {
		add_action( 'update_option', array( $this, 'track_setting_change' ), 10, 3 );
	}
}