<p align="center">
  <a href="https://roots.io/bedrock/">
    <img alt="Bedrock" src="https://cdn.roots.io/app/uploads/logo-bedrock.svg" height="100">
  </a>
</p>

<p align="center">
  <a href="https://packagist.org/packages/roots/bedrock-disallow-indexing"><img alt="Packagist" src="https://img.shields.io/packagist/v/roots/bedrock-disallow-indexing.svg?style=flat-square"></a>
  <a href="https://packagist.org/packages/roots/bedrock-disallow-indexing"><img alt="Packagist Downloads" src="https://img.shields.io/packagist/dt/roots/bedrock-disallow-indexing?label=downloads&colorB=2b3072&colorA=525ddc&style=flat-square"></a>
  <a href="https://twitter.com/rootswp"><img alt="Follow Roots" src="https://img.shields.io/badge/follow%20@rootswp-1da1f2?logo=twitter&logoColor=ffffff&message=&style=flat-square"></a>
  <a href="https://github.com/sponsors/roots"><img src="https://img.shields.io/badge/sponsor%20roots-525ddc?logo=github&style=flat-square&logoColor=ffffff&message=" alt="Sponsor Roots"></a>
</p>

<p align="center">
  <strong>Bedrock Disallow Indexing</strong>
</p>

<p align="center">
  <a href="https://roots.io/">Roots Website</a> | <a href="https://roots.io/docs/bedrock/master/installation/">Bedrock Documentation</a>
</p>

## Overview

This plugin will prevent indexing of a site when `DISALLOW_INDEXING` is set to `true` and display a notice in the WordPress dashboard with a reference to the value of [`WP_ENV`](https://roots.io/bedrock/docs/environment-variables/#wp-env) or [`wp_get_environment_type()`](https://developer.wordpress.org/reference/functions/wp_get_environment_type/).

## Support us

We're dedicated to pushing modern WordPress development forward through our open source projects, and we need your support to keep building. You can support our work by purchasing [Radicle](https://roots.io/radicle/), our recommended WordPress stack, or by [sponsoring us on GitHub](https://github.com/sponsors/roots). Every contribution directly helps us create better tools for the WordPress ecosystem.

## Community

Keep track of development and community news.

- Join us on Discord by [sponsoring us on GitHub](https://github.com/sponsors/roots)
- Join us on [Roots Discourse](https://discourse.roots.io/)
- Follow [@rootswp on Twitter](https://twitter.com/rootswp)
- Follow the [Roots Blog](https://roots.io/blog/)
- Subscribe to the [Roots Newsletter](https://roots.io/subscribe/)
