[ hide ]
The SyndicatedLink::deactivate() method allows you to unsubscribe from a feed that FeedWordPress is currently syndicating content from. It causes a feed to be marked as inactive, but it leaves all the previous posts syndicated from that feed intact. It will not erase the record of the feed from WordPress’s links table; it will only turn off the active subscription to new content.
If you have the numeric ID of a feed you want to mark as deactivated in the variable
$linkObj = new SyndicatedLink($link_id); $linkObj->deactivate();