feat: add support for 'link' field in conditions#1135
Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR adds support for a new 'link' field in RSS feed filtering conditions, allowing users to filter RSS items based on their URL to exclude specific domains.
- Adds 'link' as a new filterable field in the conditions system
- Implements link value extraction from RSS feed items
- Configures appropriate operator restrictions for the link field
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| js/Conditions/ConditionsControl.js | Adds 'link' field configuration to the supported fields array with operator restrictions |
| includes/util/feedzy-rss-feeds-conditions.php | Implements link value extraction using get_link() method in the evaluation logic |
|
Plugin build for f75a56e is ready 🛎️!
Note You can preview the changes in the Playground |
|
@Soare-Robert-Daniel, does the link filter apply only to the domain URL, and not to the full post URL/link? |
It applies to the URL in its format given by the feed. For this feed https://www.nasa.gov/feeds/iotd-feed/ the filter will apply to elements in the In this case, it will be the full link. |
704d1d7 to
f75a56e
Compare
|
🎉 This PR is included in version 5.1.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Summary
Add URL-based filtering option to exclude specific domains
Will affect visual aspect of the product
NO
Screenshots
Closes https://github.com/Codeinwp/feedzy-rss-feeds-pro/issues/836