Title: Sync Items PER FEED
Last modified: November 22, 2022

---

# Sync Items PER FEED

 *  Resolved [ulicgn](https://wordpress.org/support/users/ulicgn/)
 * (@ulicgn)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/sync-items-per-feed/)
 * Hi,
 * Regarding :
    [https://kb.wprssaggregator.com/article/191-keep-feed-in-sync-with-current-state](https://kb.wprssaggregator.com/article/191-keep-feed-in-sync-with-current-state)(
   mentioned here [https://wordpress.org/support/topic/automatically-delete-feed-items/](https://wordpress.org/support/topic/automatically-delete-feed-items/))
 * Using wprss_delete_feed_items_of_feed_source will cause ALL feeds to be synced
   with their sources. Is there a way (filter, action, hook?) to do this only for
   specific feeds?
 * Thanks & best Regards
    Uli
    -  This topic was modified 3 years, 5 months ago by [ulicgn](https://wordpress.org/support/users/ulicgn/).

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [mikeyboo](https://wordpress.org/support/users/mikeyboo/)
 * (@mikeyboo)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/sync-items-per-feed/#post-16236756)
 * Hi [@ulicgn](https://wordpress.org/support/users/ulicgn/) out of the box, we 
   don’t have the option to apply the filter to a specific feed source. Please allow
   me to check with the dev team on the same.
 *  Thread Starter [ulicgn](https://wordpress.org/support/users/ulicgn/)
 * (@ulicgn)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/sync-items-per-feed/#post-16245035)
 * Thanks for considering. I have, however, found a different solution meanwhile.
 *  [mikeyboo](https://wordpress.org/support/users/mikeyboo/)
 * (@mikeyboo)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/sync-items-per-feed/#post-16251330)
 * Hi [@ulicgn](https://wordpress.org/support/users/ulicgn/) to achieve this the
   filter needs to be modified as follows.
 * add_action(‘wprss_fetch_single_feed_hook’, function($feedId) {
 *     ```
       $syncFeeds = [1, 2, 3, 5, 8, 13, 21]; 
       if (in_array($feedId, $syncFeeds)) { 
       wprss_delete_feed_items_of_feed_source($feedId); 
       } 
       }, 9);
       ```
   
 * You will need to edit the second line to specify the feed IDs to sync between
   the square brackets (where we have “1, 2, 3, 5, 8, 13, 21” as an example).
 * It’s crucial that you add a comma between each feed ID, as this will cause a 
   PHP error that breaks the site.
 * You can find the feed IDs from the Feed Sources list. The ID will appear underneath
   the feed’s name when you move the mouse over that feed’s row in the table.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Sync Items PER FEED’ is closed to new replies.

 * ![](https://ps.w.org/wp-rss-aggregator/assets/icon-256x256.gif?rev=3157090)
 * [RSS Aggregator - RSS Import, News Feeds, Feed to Post, and Autoblogging](https://wordpress.org/plugins/wp-rss-aggregator/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-rss-aggregator/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-rss-aggregator/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-rss-aggregator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-rss-aggregator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-rss-aggregator/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [mikeyboo](https://wordpress.org/support/users/mikeyboo/)
 * Last activity: [3 years, 5 months ago](https://wordpress.org/support/topic/sync-items-per-feed/#post-16251330)
 * Status: resolved