[wp-hackers] Disabling Feeds

Sam Angove peasant at gmail.com
Mon Sep 12 22:01:34 GMT 2005

On 9/13/05, Trevor Turk <trevorturk at yahoo.com> wrote:
> I was looking into plugins, and I think I have
> something here that would work. Here's the content of
> it:

I haven't tested this at all either, but I'm pretty sure it's a better
place to hook the plugin in. :)

function disable_feed() {
	if (is_feed()) {
		// authenticate, set a 403/404, die() or whatever
add_action('template_redirect', 'disable_feed');

Authentication probably isn't worth the trouble.

More information about the wp-hackers mailing list