WC_Theme_Tracking::track_initial_theme
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.
Returns
null. Nothing (null).
Usage
$WC_Theme_Tracking = new WC_Theme_Tracking(); $WC_Theme_Tracking->track_initial_theme();
WC_Theme_Tracking::track_initial_theme() WC Theme Tracking::track initial theme code WC 10.8.1
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 );
}