Framework support
Dotvault for WordPress
Dotvault for WordPress projects.
Classic WordPress keeps its credentials in wp-config.php. Bedrock and most Docker setups move them into a .env instead, which is a much better idea and also means eight salt values and a full database credential set now live in a file you should be careful with. Dotvault recognises all of them and gives you version history over the lot.
What you get
- →Detects WordPress from wp-config.php in the project root, rather than from a package manifest.
- →Recognises the required database set, DB_NAME, DB_USER, DB_PASSWORD and DB_HOST, and flags any that are missing.
- →Knows all eight WordPress salts, AUTH_KEY through NONCE_SALT, so a half-rotated set is obvious.
- →Recognises WP_HOME, WP_SITEURL and the WP_DEBUG family, which are the ones you least want set wrong in production.
Known environment variables
Dotvault recognises these variables when you open a WordPress project and surfaces helpful descriptions and warnings in the editor. WordPress is detected via wp-config.php in the project root.
DB_NAMERequiredDatabase name
DB_USERRequiredDatabase username
DB_PASSWORDRequiredDatabase password
DB_HOSTRequiredDatabase host
DB_PREFIXDatabase table prefix
WP_ENVWordPress environment
WP_HOMEHome URL
WP_SITEURLSite URL
WP_DEBUGEnable WordPress debug mode
WP_DEBUG_LOGWrite debug output to log file
WP_DEBUG_DISPLAYDisplay debug errors on screen
WP_CACHEEnable advanced caching
DISABLE_WP_CRONDisable WP-Cron (use real cron instead)
WP_POST_REVISIONSMax number of post revisions to keep
AUTOSAVE_INTERVALAutosave interval in seconds
AUTH_KEYWordPress authentication salt key
SECURE_AUTH_KEYWordPress secure auth salt key
LOGGED_IN_KEYWordPress logged-in salt key
NONCE_KEYWordPress nonce salt key
AUTH_SALTWordPress auth salt
SECURE_AUTH_SALTWordPress secure auth salt
LOGGED_IN_SALTWordPress logged-in salt
NONCE_SALTWordPress nonce salt
Official WordPress docs: developer.wordpress.org