WordPress at Your Fingertips
function is not described

WC_Tracker::get_theme_info() public WC 1.0

Get the current theme info, theme name and version.

{} It's a method of the class: WC_Tracker{}

No Hooks.

Return

Array.

Usage

$result = WC_Tracker::get_theme_info();

Code of WC_Tracker::get_theme_info() WC 5.9.0

public static function get_theme_info() {
	$theme_data        = wp_get_theme();
	$theme_child_theme = wc_bool_to_string( is_child_theme() );
	$theme_wc_support  = wc_bool_to_string( current_theme_supports( 'woocommerce' ) );

	return array(
		'name'        => $theme_data->Name, // @phpcs:ignore
		'version'     => $theme_data->Version, // @phpcs:ignore
		'child_theme' => $theme_child_theme,
		'wc_support'  => $theme_wc_support,
	);
}