Commit efd7244ebd for woocommerce
commit efd7244ebdb5733d928b605233d79cb146b48e4b
Author: Pavel Dohnal <pavel.dohnal@automattic.com>
Date: Mon Jan 26 14:29:06 2026 +0100
Add Facebook to onboarding with 1/3 plugin rotation (#62934)
diff --git a/plugins/woocommerce/assets/images/core-profiler/logo-facebook.svg b/plugins/woocommerce/assets/images/core-profiler/logo-facebook.svg
new file mode 100644
index 0000000000..8821230252
--- /dev/null
+++ b/plugins/woocommerce/assets/images/core-profiler/logo-facebook.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="svg" version="1.1" width="400" height="400" viewBox="0, 0, 400,400"><path d="M236.123 79.591 C 203.081 81.969,179.982 100.389,172.097 130.649 C 169.391 141.032,169.389 141.067,169.238 172.026 L 169.102 200.000 143.845 200.000 L 118.587 200.000 118.587 228.622 L 118.587 257.244 143.773 257.339 L 168.959 257.435 169.053 326.826 L 169.147 396.218 170.540 396.436 C 187.320 399.069,210.583 399.142,227.973 396.616 L 230.853 396.197 230.947 326.816 L 231.041 257.435 254.067 257.249 L 277.093 257.063 281.269 230.112 C 283.565 215.288,285.551 202.449,285.681 201.580 L 285.919 200.000 258.387 200.000 L 230.855 200.000 230.857 180.204 C 230.860 152.983,231.708 148.457,238.142 141.301 C 244.974 133.702,250.256 132.261,272.026 132.058 L 288.104 131.909 288.104 107.628 L 288.104 83.348 285.781 82.949 C 270.030 80.248,247.842 78.748,236.123 79.591 " stroke="none" fill="#fbfbfc" fill-rule="evenodd"/><path d="M182.342 2.403 C 65.221 13.643,-15.621 119.778,4.649 235.688 C 18.560 315.230,82.889 380.241,162.268 394.976 C 165.130 395.508,167.765 396.003,168.123 396.078 C 168.740 396.206,168.773 392.717,168.773 326.917 L 168.773 257.621 143.680 257.621 L 118.587 257.621 118.587 228.810 L 118.587 200.000 143.654 200.000 L 168.722 200.000 168.875 172.955 C 169.005 149.974,169.123 145.269,169.661 141.636 C 176.408 96.044,207.905 74.947,261.896 79.856 C 270.746 80.661,284.350 82.376,287.639 83.101 L 288.476 83.286 288.476 107.578 L 288.476 131.870 272.955 132.078 C 250.808 132.375,245.456 133.808,238.521 141.298 C 231.954 148.391,231.469 150.862,231.314 177.972 L 231.189 199.995 258.642 200.091 L 286.095 200.186 282.297 224.721 C 280.208 238.216,278.213 251.138,277.863 253.439 L 277.227 257.621 254.227 257.621 L 231.227 257.621 231.227 326.902 L 231.227 396.184 235.037 395.497 C 321.638 379.897,387.533 309.370,397.203 221.933 C 408.693 118.031,337.522 22.952,234.572 4.673 C 220.270 2.134,196.096 1.083,182.342 2.403 " stroke="none" fill="#1c74f4" fill-rule="evenodd"/><path d="M249.354 79.445 C 249.816 79.534,250.485 79.531,250.841 79.438 C 251.196 79.345,250.818 79.272,250.000 79.276 C 249.182 79.280,248.891 79.356,249.354 79.445 M288.280 107.621 C 288.280 121.115,288.326 126.582,288.383 119.768 C 288.440 112.955,288.439 101.914,288.383 95.233 C 288.326 88.552,288.279 94.126,288.280 107.621 M168.949 175.836 C 168.949 189.229,168.995 194.707,169.052 188.011 C 169.109 181.315,169.109 170.358,169.052 163.662 C 168.995 156.966,168.949 162.444,168.949 175.836 M254.089 257.249 L 231.041 257.443 253.974 257.532 C 268.959 257.590,276.987 257.492,277.138 257.249 C 277.264 257.045,277.316 256.917,277.252 256.966 C 277.189 257.015,266.766 257.142,254.089 257.249 M143.772 257.527 L 168.771 257.626 168.867 326.861 L 168.962 396.097 168.961 326.766 L 168.959 257.435 143.866 257.431 L 118.773 257.427 143.772 257.527 " stroke="none" fill="#9bc4fc" fill-rule="evenodd"/><path d="" stroke="none" fill="#74acf4" fill-rule="evenodd"/><path d="M260.874 132.233 C 261.334 132.321,262.086 132.321,262.546 132.233 C 263.007 132.144,262.630 132.072,261.710 132.072 C 260.790 132.072,260.414 132.144,260.874 132.233 M231.028 180.669 C 231.028 191.403,231.076 195.795,231.134 190.428 C 231.192 185.060,231.192 176.278,231.134 170.911 C 231.076 165.544,231.028 169.935,231.028 180.669 M231.037 326.952 C 231.037 365.186,231.081 380.772,231.134 361.588 C 231.187 342.403,231.187 311.121,231.134 292.071 C 231.081 273.021,231.037 288.717,231.037 326.952 " stroke="none" fill="#4d98f4" fill-rule="evenodd"/></svg>
diff --git a/plugins/woocommerce/changelog/storma-142-adjust-woo-onboarding-wizard-plugin-rotation b/plugins/woocommerce/changelog/storma-142-adjust-woo-onboarding-wizard-plugin-rotation
new file mode 100644
index 0000000000..f641c54ed9
--- /dev/null
+++ b/plugins/woocommerce/changelog/storma-142-adjust-woo-onboarding-wizard-plugin-rotation
@@ -0,0 +1,4 @@
+Significance: patch
+Type: update
+Comment: Add Facebook for WooCommerce to onboarding wizard and implement 1/3 rotation for TikTok, Pinterest, and Facebook plugins.
+
diff --git a/plugins/woocommerce/src/Internal/Admin/RemoteFreeExtensions/DefaultFreeExtensions.php b/plugins/woocommerce/src/Internal/Admin/RemoteFreeExtensions/DefaultFreeExtensions.php
index f8cb2ef9d8..9882ef2bab 100644
--- a/plugins/woocommerce/src/Internal/Admin/RemoteFreeExtensions/DefaultFreeExtensions.php
+++ b/plugins/woocommerce/src/Internal/Admin/RemoteFreeExtensions/DefaultFreeExtensions.php
@@ -89,6 +89,7 @@ class DefaultFreeExtensions {
self::get_plugin( 'woocommerce-services:tax' ),
self::get_plugin( 'tiktok-for-business' ),
self::get_plugin( 'snapchat-for-woocommerce' ),
+ self::get_plugin( 'facebook-for-woocommerce' ),
)
),
),
@@ -557,6 +558,13 @@ class DefaultFreeExtensions {
'learn_more_link' => 'https://woocommerce.com/products/snapchat/?utm_source=storeprofiler&utm_medium=product&utm_campaign=freefeatures',
'install_priority' => 1,
),
+ 'facebook-for-woocommerce' => array(
+ 'label' => __( 'Grow your business with Facebook and Instagram', 'woocommerce' ),
+ 'image_url' => plugins_url( '/assets/images/core-profiler/logo-facebook.svg', WC_PLUGIN_FILE ),
+ 'description' => __( 'List products and create ads on Facebook and Instagram.', 'woocommerce' ),
+ 'learn_more_link' => 'https://woocommerce.com/products/facebook/?utm_source=storeprofiler&utm_medium=product&utm_campaign=freefeatures',
+ 'install_priority' => 2,
+ ),
'woocommerce-services:tax' => array(
'label' => __( 'Get automated tax rates with WooCommerce Tax', 'woocommerce' ),
'image_url' => self::get_woo_logo(),
@@ -578,6 +586,37 @@ class DefaultFreeExtensions {
self::get_rules_for_wcservices_tax_countries(),
);
+ // TikTok, Pinterest, and Facebook share a single spot with 1/3 rotation each.
+ $_plugins['tiktok-for-business']['is_visible'] = array(
+ array(
+ 'type' => 'option',
+ 'option_name' => 'woocommerce_remote_variant_assignment',
+ 'value' => array( 1, 40 ),
+ 'default' => false,
+ 'operation' => 'range',
+ ),
+ );
+
+ $_plugins['pinterest-for-woocommerce']['is_visible'] = array(
+ array(
+ 'type' => 'option',
+ 'option_name' => 'woocommerce_remote_variant_assignment',
+ 'value' => array( 41, 80 ),
+ 'default' => false,
+ 'operation' => 'range',
+ ),
+ );
+
+ $_plugins['facebook-for-woocommerce']['is_visible'] = array(
+ array(
+ 'type' => 'option',
+ 'option_name' => 'woocommerce_remote_variant_assignment',
+ 'value' => array( 81, 120 ),
+ 'default' => false,
+ 'operation' => 'range',
+ ),
+ );
+
$remove_plugins_activated_rule = function ( $is_visible ) {
$is_visible = array_filter(
array_map(