WC_Theme_Tracking::track_initial_theme()publicWC 1.0

Tracks the sites current theme the first time this code is run, and will only be run once.

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

Хуков нет.

Возвращает

null. Ничего.

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

$WC_Theme_Tracking = new WC_Theme_Tracking();
$WC_Theme_Tracking->track_initial_theme();

Код WC_Theme_Tracking::track_initial_theme() WC 6.9.4

public function track_initial_theme() {
	$has_been_initially_tracked = get_option( 'wc_has_tracked_default_theme' );

	if ( $has_been_initially_tracked ) {
		return;
	}

	$this->track_activated_theme();
	add_option( 'wc_has_tracked_default_theme', 1 );
}