DefineWpConfigConstsStep
Index
Properties
Properties
consts
The constants to define
optionalmethod
The method of defining the constants in wp-config.php. Possible values are:
- rewrite-wp-config: Default. Rewrites the wp-config.php file to explicitly call define() with the requested name and value. This method alters the file on the disk, but it doesn’t conflict with existing define() calls in wp-config.php.
- define-before-run: Defines the constant before running the requested script. It doesn’t alter any files on the disk, but constants defined this way may conflict with existing define() calls in wp-config.php.
Defines constants in a
wp-config.php
file.This step can be called multiple times, and the constants will be merged.