Support » Plugins » Hacks » Remove feed added with add_feed

  • Resolved joachimcarrein


    I’m working on a plugin for something I need on my blog. I have really no experience with wordpress development or php.

    I added a feed type by calling the add_feed($slug,$callback) function. Now the feed type is created, but not quite right. So I want to call the add_feed again, but I think it is not called correctly.

    So I would like to know if there is any way to also “remove” the feed type I added, since I also want to remove it when uninstalling the plugin.

    Any ideas?

Viewing 1 replies (of 1 total)
  • Moderator bcworkz


    You would think if you can add something, you could remove it as well, right?

    All add_feed() does is add an entry to the global $wp_rewrite->feeds[] and add an action hook. So I imagine if you remove the action and unset your entry in $wp_rewrite, you would have essentially removed the feed. But I really couldn’t be sure.

Viewing 1 replies (of 1 total)
  • The topic ‘Remove feed added with add_feed’ is closed to new replies.