diff --git a/plugins/woocommerce-admin/changelogs/fix-8327-google-listings-plugin-is-always-shown-in-free-features b/plugins/woocommerce-admin/changelogs/fix-8327-google-listings-plugin-is-always-shown-in-free-features new file mode 100644 index 00000000000..f0bb0f4f4d8 --- /dev/null +++ b/plugins/woocommerce-admin/changelogs/fix-8327-google-listings-plugin-is-always-shown-in-free-features @@ -0,0 +1,4 @@ +Significance: patch +Type: Fix + +Fix Google Listings plugin is always shown in free features despite already activated. #8330 diff --git a/plugins/woocommerce-admin/src-internal/Admin/RemoteFreeExtensions/DefaultFreeExtensions.php b/plugins/woocommerce-admin/src-internal/Admin/RemoteFreeExtensions/DefaultFreeExtensions.php index e984bc6f19e..f10e0cb51c7 100644 --- a/plugins/woocommerce-admin/src-internal/Admin/RemoteFreeExtensions/DefaultFreeExtensions.php +++ b/plugins/woocommerce-admin/src-internal/Admin/RemoteFreeExtensions/DefaultFreeExtensions.php @@ -79,6 +79,17 @@ class DefaultFreeExtensions { 'image_url' => plugins_url( 'images/onboarding/google-listings-and-ads.png', WC_ADMIN_PLUGIN_FILE ), 'manage_url' => 'admin.php?page=wc-admin&path=%2Fgoogle%2Fstart', 'is_built_by_wc' => true, + 'is_visible' => [ + [ + 'type' => 'not', + 'operand' => [ + [ + 'type' => 'plugins_activated', + 'plugins' => [ 'google-listings-and-ads' ], + ], + ], + ], + ], ], 'google-listings-and-ads:alt' => [ 'name' => __( 'Google Listings & Ads', 'woocommerce-admin' ),