Add block theme property to get_theme_info() in class-wc-tracker class

This commit is contained in:
Tom Cafferkey 2022-03-24 08:37:40 +00:00 committed by Jorge A. Torres
parent 9108b8dbf8
commit ab769ebe2c
1 changed files with 5 additions and 3 deletions

View File

@ -184,12 +184,14 @@ class WC_Tracker {
$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' ) );
$theme_is_block_theme = wc_bool_to_string( wc_current_theme_is_fse_theme() );
return array(
'name' => $theme_data->Name, // @phpcs:ignore
'version' => $theme_data->Version, // @phpcs:ignore
'child_theme' => $theme_child_theme,
'wc_support' => $theme_wc_support,
'block_theme' => $theme_is_block_theme,
);
}