Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wp-digital/wp-force-non-public
https://github.com/wp-digital/wp-force-non-public
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/wp-digital/wp-force-non-public
- Owner: wp-digital
- Created: 2021-11-09T10:44:38.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2021-11-09T16:40:12.000Z (about 3 years ago)
- Last Synced: 2024-11-02T15:52:00.236Z (2 months ago)
- Language: PHP
- Size: 1.95 KB
- Stars: 1
- Watchers: 11
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Force Non-Public
### Description
Programmatically discourages search engines from indexing the site.
### Install
- Preferable way is to use [Composer](https://getcomposer.org/):
````
composer require innocode-digital/wp-force-non-public
````By default, it will be installed as [Must Use Plugin](https://codex.wordpress.org/Must_Use_Plugins).
It's possible to control with `extra.installer-paths` in `composer.json`.- Alternate way is to clone this repo to `wp-content/mu-plugins/` or `wp-content/plugins/`:
````
cd wp-content/plugins/
git clone [email protected]:innocode-digital/wp-force-non-public.git
cd wp-force-non-public/
composer install
````If plugin was installed as regular plugin then activate **Force Non-Public** from Plugins page
or [WP-CLI](https://make.wordpress.org/cli/handbook/): `wp plugin activate wp-force-non-public`.### Usage
To enable plugin it's required to add constant (usually to `wp-config.php`):
```
define( 'FORCE_NON_PUBLIC', true );
```