• I am running a multisite site installation as a demo server for my WordPress plugin. Users can create a new blog/account, but I don’t want their blogs indexed by Google.

    Currently, when creating an account they are provided the option “Allow search engines to index this site,” but I don’t want to give them the choice. I search engine crawling disabled for all blogs.

    Is there a hack or plugin that could accomplish this? (Ideally, this hack/plugin would apply to existing and future blogs, but it’s fine if it only applies to new ones.)

Viewing 1 replies (of 1 total)
  • Drop something like this in your /wp-content/mu-plugins/

    <?php
    add_filter( 'pre_option_blog_public', 'ds_blog_public' );
    function ds_blog_public() {
    	$bar = '0';
    	return $bar;
    }
    ?>
Viewing 1 replies (of 1 total)
  • The topic ‘Multisite: Disable search engine robots for all blogs’ is closed to new replies.