Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions includes/util/feedzy-rss-feeds-conditions.php
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,9 @@ public function evaluate_conditions( $default_value, $attrs, $item, $feed_url, $
$image = $admin->feedzy_retrieve_image( $item, $attrs );
$value = $image;
break;
case 'link':
$value = $item->get_link();
Comment thread
Soare-Robert-Daniel marked this conversation as resolved.
break;
default:
$value = '';
break;
Expand Down
7 changes: 6 additions & 1 deletion js/Conditions/ConditionsControl.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ const SUPPORTED_FIELDS = [
value: 'featured_image',
unsupportedOperators: ['greater_than', 'gte', 'less_than', 'lte'],
},
{
label: __('Link', 'feedzy-rss-feeds'),
value: 'link',
unsupportedOperators: ['greater_than', 'gte', 'less_than', 'lte'],
},
];
const isPro = window.feedzyData.isPro;

Expand Down Expand Up @@ -144,7 +149,7 @@ const ConditionsControl = ({ conditions, setConditions }) => {
);
const operators = Object.keys(
window?.feedzyConditionsData?.operators
).filter((key) => !field.unsupportedOperators?.includes(key));
).filter((key) => !field?.unsupportedOperators?.includes(key));

return (
<PanelTab
Expand Down
Loading