Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author shanebp

    (@shanebp)

    It does not protect feeds.
    But we will consider it for a future release.

    To turn off feeds, you can put something like this in your theme/functions.php

    function stacy_disable_feed() {
    	wp_die( __('No feed available,please visit our <a href="'. get_bloginfo('url') .'">homepage</a>!') );
    }
    add_action( 'do_feed', 'stacy_disable_feed', 1);
    add_action( 'do_feed_rdf', 'stacy_disable_feed', 1);
    add_action( 'do_feed_rss', 'stacy_disable_feed', 1);
    add_action( 'do_feed_rss2', 'stacy_disable_feed', 1);
    add_action( 'do_feed_atom', 'stacy_disable_feed', 1);
    add_action( 'do_feed_rss2_comments', 'stacy_disable_feed', 1);
    add_action( 'do_feed_atom_comments', 'stacy_disable_feed', 1);
    add_action( 'bp_activity_sitewide_feed', 'stacy_disable_feed', 1 );
    add_action( 'bp_activity_personal_feed', 'stacy_disable_feed', 1 );
    add_action( 'bp_activity_friends_feed', 'stacy_disable_feed', 1 );
    add_action( 'bp_activity_my_groups_feed', 'stacy_disable_feed', 1 );
    add_action( 'bp_activity_mentions_feed', 'stacy_disable_feed', 1 );
    add_action( 'bp_activity_favorites_feed', 'stacy_disable_feed', 1 );
    add_action( 'groups_group_feed', 'stacy_disable_feed', 1 );
    Thread Starter Stacy (non coder)

    (@functionmunchkin)

    This code wouldn’t work for multisite right?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Does it protect the feeds?’ is closed to new replies.