Class: SyndicatedLink
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.
Example
If you have the numeric ID of a feed you want to mark as deactivated in the variable $link_id
:
$linkObj = new SyndicatedLink($link_id);
$linkObj->deactivate();
See also
- SyndicatedLink::delete() erases the record of a feed and treats all the posts previously syndicated from that feed as if they were local content.
- SyndicatedLink::nuke() erases the record of a feed and deletes all the posts previously syndicated from that feed.