wps #4 in Developer Tools
WordPress plugin for whoops error handler.
by Andrey "Rarst" Savchenko · github.com/rarst/wps · website
★ 130stars
1.8krelease downloads
≈110active sites
137kcomposer installs
14forks
Install
The author publishes release zips, so WP-CLI can install straight from GitHub:
wp plugin install https://github.com/rarst/wps/releases/download/1.2/wps-1.2.zipAlso on Packagist as rarst/wps:
composer require rarst/wpsFrom the readme
wps — WordPress plugin for whoops
wps adds whoops error handler to a WordPress installation.
It makes error messages from PHP, admin-ajax.php, and WP REST API a great deal more clear and convenient to work with.
Installation
| Composer (recommended) | Release archive |
| -------------------------------------------------- | -------- |
| composer require rarst/wps | |
Usage
The plugin is meant strictly for development and will only work with WPDEBUG and WPDEBUGDISPLAY configuration constants enabled.
Silence errors
whoops can definitely get noisy with a lot of low–grade errors.
Silence errors for irrelevant locations to keep it practical and productive.
Silence for URL
Use ?wpsdisable query argument in the URL to temporarily disable whoops.
Silence for path
Use regular expressions to match source file paths and error constants to configure what should be silenced.
This can be called multiple times and/or array of paths can be provided.
Note that the direction of slashes needs to match operating system or write your regexes to match either.
License
MIT
Read the full README on GitHub →
Releases
| Tag | Published | Asset | Downloads |
|---|---|---|---|
| 1.2 | Dec 18, 2018 | wps-1.2.zip | 195 |
| 1.2 | Dec 18, 2018 | wps.zip | 1,366 |
| 1.1 | Oct 27, 2017 | wps-1.1.zip | 166 |
| 1.0 | May 8, 2016 | wps-1.0.zip | 51 |
Active-site estimate ≈110 comes from the median of recent superseded releases. Method.