Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Delete old marketing recommendations transient upon update to WC 8.6.0 (
woocommerce#43162) * Add MarketingRecommendations feature. The code here is based on other feature with default fallbacks and with data source poller, e.g. see payment gateway suggestions. * Use MarketingRecommendations feature in API. * Add spec_key for MarketingRecommendationsDataSourcePoller. If we don't specify it, the default is `id`, which is not used in our recommendation data, and this will cause things not to work as expected. * Recursively convert object to array. This is because all the subsequent functions work with arrays, not objects. * Make recommended marketing tools and coupons use MarketingRecommendationsInit. This is so that recommended channels, tools, and coupons make use of the same transient data with data source poller. * Add changelog. * Fix PHP lint issues. * Add doc comment to fix lint error. * Fix tests in MarketingRecommendationsTest. * Replace recommendations.json file with generated data in DefaultMarketingRecommendations. This is to have i18n support. * Add icons for fallback marketing recommendations. * Fix PHP linting issue. * Fix linting issue. * Fix failing tests with PHP 8.0. * Remove unused replaced code in MarketingSpecs. * Delete old marketing recommendations transient upon update to WC 8.6.0. * Add changelog.
- Loading branch information