/wordpress-debug

Enable or disable Wordpress debug

Primary LanguageJavaScriptMIT LicenseMIT

wordpress-debug

NPM version Travis Build Status dependencies Status devDependencies Status Greenkeeper badge

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.