https://github.com/harlan-zw/wp-development-environment
WorldPress Plugin - Development Environment
https://github.com/harlan-zw/wp-development-environment
Last synced: 7 months ago
JSON representation
WorldPress Plugin - Development Environment
- Host: GitHub
- URL: https://github.com/harlan-zw/wp-development-environment
- Owner: harlan-zw
- Archived: true
- Created: 2017-09-11T04:14:14.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2025-03-06T22:41:50.000Z (7 months ago)
- Last Synced: 2025-03-17T14:35:23.877Z (7 months ago)
- Language: PHP
- Homepage: https://wordpress.org/plugins/easy-development/
- Size: 277 KB
- Stars: 5
- Watchers: 2
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.MD
Awesome Lists containing this project
README
Development Environment
===================The aim of this plugin is to make life easier when working on a WordPress site running in a development or testing environment.
Components
---------
- **Disallow Indexing** Turn off the public blog option. This will modify the robots.txt generation to block all search engines
- **Flush Rewrites** No more weird redirection problems when working on custom post types or taxonomies.
- **No Password Logins** Just stick the user in you want to login as, write anything in the password field, and it will login! Only works when connecting from local host
- **Whoops Error Handling** The error screen from laravel, now in your wordpress setup
- **Template Hints** See which templates are loading for the page you are onMin Requirements
---------- PHP 7
- WordPress 4.8.1Setup
-------------#### **Environment**
The outcome is to exchange security for ease of use, for that reason it's important that you take the security measures needed
to ensure that someone can't take advantage of the site with this plugin enabled.If you're running on a staging environment ensure you have setup a [htpasswd](http://www.htaccesstools.com/htpasswd-generator/)
#### **Instructions**
To use the plugin, it must be able to detect the environment is development or staging, this can be done:
Via **wp-config.php**
1. Add `define('WP_ENV', 'development')`Via **vhost**
1. Add `SetEnv WP_ENV "development"`#### **Filters**
```
development-environment/is-development
```
Set yourself how the plugin detects if the environment is development.```
development-environment/require-component-$component
```
Disable require of a component if you don't want to use it. Possible values are:
`disallow-indexing`, `flush-rewrites`, `no-password-logins`, `whoops-error-handling`