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.

Method of the class: WC_Theme_Tracking{}

No Hooks.

Return

null. Nothing (null).

Usage

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

WC_Theme_Tracking::track_initial_theme() code WC 8.7.0

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