| author | ymh <ymh.work@gmail.com> |
| Sat, 06 Mar 2021 09:11:30 +0100 | |
| changeset 42 | 5bb33f78b519 |
| parent 1 | 79bc439970cd |
| permissions | -rw-r--r-- |
<?php /* Plugin Name: Disallow Indexing Plugin URI: https://roots.io/bedrock/ Description: Disallow indexing of your site on non-production environments. Version: 1.0.0 Author: Roots Author URI: https://roots.io/ License: MIT License */ if (defined('WP_ENV') && WP_ENV !== 'production' && !is_admin()) { add_action('pre_option_blog_public', '__return_zero'); }