feat (feed): add new filters to personalize feed's products#173
Open
petitphp wants to merge 1 commit into
Open
feat (feed): add new filters to personalize feed's products#173petitphp wants to merge 1 commit into
petitphp wants to merge 1 commit into
Conversation
- add filter `shopping_feed_products_for_feed` to add or remove products from feed - add filter `shopping_feed_order_products_product_sku` to modify SKU reference when importing and order from SF - remove generator when formatting products
Rahe
approved these changes
May 21, 2026
Rahe
approved these changes
May 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
shopping_feed_products_for_feedto add or remove products from feedshopping_feed_order_products_product_skuto modify SKU reference when importing and order from SFNote
Medium Risk
Moderate risk because it changes the shape/type of product data passed into feed generation (from yielded arrays to
Productobjects) and updates generator mapper/filter signatures, which could break feed output if downstream expectations differ.Overview
Adds a new customization point for feed generation by applying
shopping_feed_products_for_feedto the formatted product list right before writing the XML, enabling third parties to add/remove items from the feed.Adds
shopping_feed_order_products_product_skuto let integrations rewrite the incoming ShoppingFeed order SKU before resolving WooCommerce products.Refactors feed product formatting and generator callbacks to operate on
ShoppingFeedWC\Products\Productobjects directly (instead of arrays/wrappers), updating type hints/imports accordingly.Reviewed by Cursor Bugbot for commit 371abf6. Bugbot is set up for automated code reviews on this repo. Configure here.