SyndicatedLink::delete

Contents

[ hide ]

    Class: SyndicatedLink

    The SyndicatedLink::delete() method allows you to delete the record of a feed that FeedWordPress is or was syndicating content from. Unlike SyndicatedLink::deactivate, the delete() method erases the record of the subscription, and alters content previously syndicated from the feed, rather than keeping a record of the feed and marking it as inactive. SyndicatedLink::delete() removes any record of the subscription, and removes the subscription meta-data from any posts syndicated from the feed, so that they will appear to be posts authored locally rather than posts syndicated from a feed.

    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->delete();
    

    See also

    • SyndicatedLink::deactivate() deactivates a subscription, so that FeedWordPress will stop syndicating new content from that feed, but leaves intact all the posts previously syndicated from that feed.
    • SyndicatedLink::nuke() erases the record of a feed and deletes all the posts previously syndicated from that feed.
    This page is a Wiki! Log in or register an account to edit.

    Leave a Reply

    Your email address will not be published. Required fields are marked *