DefineWpConfigConstsStep
Index
Properties
Properties
consts
The constants to define
optionalmethod
How Playground defines the constants.
define-before-run(default) uses PHP'sauto_prepend_filesetting to define constants with string, number, or boolean values before the requested script runs. These values take precedence over later definitions inwp-config.php. This method skipsnull, arrays, and objects. Use it to keepwp-config.phpintact, for example when working with a mounted project.rewrite-wp-configadds or updates the correspondingdefine()calls inwp-config.php. Use it to replace an existing definition in that file or to keep the constants in awp-config.phpyou plan to use outside Playground.
Defines PHP constants for WordPress. Use the
methodoption to write them towp-config.php.This step can be called multiple times, and the constants will be merged.