wordpress-debug
v1.0.1
Published
Enable or disable Wordpress debug
Downloads
5
Readme
wordpress-debug
Enable or disable Wordpress debug.
Install
npm install wordpress-debug --save-dev
Usage
const wordpressDebug = require('wordpress-debug').default;
wordpressDebug('path/to/wp-config.php'); // Enable debug
wordpressDebug('path/to/wp-config.php', true); // Enable debug
wordpressDebug('path/to/wp-config.php', false); // Disable debug
API
wordpressDebug(wpConfigPath, debug)
Returns a Promise
.
wpConfigPath
Type: string
Required: true
Path to wp-config.php
.
debug
Type: boolean
Default: true
Required: false
Enable or disable debug.
Contribution
Feel free to push your code if you agree with publishing under the MIT license.