+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Methods
+
+
+
+
+
+
+
+ (async) cleanup(dir) → {void}
+
+
+
+
+
+
+
+ Asynchronously cleans up a temporary directory.
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name |
+
+
+ Type |
+
+
+
+
+
+ Description |
+
+
+
+
+
+
+
+
+ dir |
+
+
+
+
+
+string
+
+
+
+ |
+
+
+
+
+
+ The path to the temporary directory. |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Returns:
+
+
+
+ A promise that resolves when the cleanup is complete.
+
+
+
+
+
+ -
+ Type
+
+ -
+
+void
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ (async) cleanup(dir) → {void}
+
+
+
+
+
+
+
+ Asynchronously cleans up a temporary directory.
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name |
+
+
+ Type |
+
+
+
+
+
+ Description |
+
+
+
+
+
+
+
+
+ dir |
+
+
+
+
+
+string
+
+
+
+ |
+
+
+
+
+
+ The path to the temporary directory. |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Returns:
+
+
+
+ A promise that resolves when the cleanup is complete.
+
+
+
+
+
+ -
+ Type
+
+ -
+
+void
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ (async) downloadFile(url, targetFile) → {Promise.<void>}
+
+
+
+
+
+
+
+ Downloads a file from the specified URL and saves it to the target file.
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name |
+
+
+ Type |
+
+
+
+
+
+ Description |
+
+
+
+
+
+
+
+
+ url |
+
+
+
+
+
+string
+
+
+
+ |
+
+
+
+
+
+ The URL of the file to download. |
+
+
+
+
+
+
+ targetFile |
+
+
+
+
+
+string
+
+
+
+ |
+
+
+
+
+
+ The file path where the downloaded file will be saved. |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Returns:
+
+
+
+ A promise that resolves when the file is successfully downloaded and saved, or rejects with an error if there was an issue.
+
+
+
+
+
+ -
+ Type
+
+ -
+
+Promise.<void>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ (async) downloadFile(url, targetFile) → {Promise.<void>}
+
+
+
+
+
+
+
+ Downloads a file from the specified URL and saves it to the target file.
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name |
+
+
+ Type |
+
+
+
+
+
+ Description |
+
+
+
+
+
+
+
+
+ url |
+
+
+
+
+
+string
+
+
+
+ |
+
+
+
+
+
+ The URL of the file to download. |
+
+
+
+
+
+
+ targetFile |
+
+
+
+
+
+string
+
+
+
+ |
+
+
+
+
+
+ The file path where the downloaded file will be saved. |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Returns:
+
+
+
+ A promise that resolves when the file is successfully downloaded and saved, or rejects with an error if there was an issue.
+
+
+
+
+
+ -
+ Type
+
+ -
+
+Promise.<void>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Extracts a zip file to a target directory.
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name |
+
+
+ Type |
+
+
+
+
+
+ Description |
+
+
+
+
+
+
+
+
+ zipFilePath |
+
+
+
+
+
+string
+
+
+
+ |
+
+
+
+
+
+ The path of the zip file to extract. |
+
+
+
+
+
+
+ targetDirectory |
+
+
+
+
+
+string
+
+
+
+ |
+
+
+
+
+
+ The directory to extract the zip file to. |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Returns:
+
+
+
+ Returns true if the extraction is successful, false otherwise.
+
+
+
+
+
+ -
+ Type
+
+ -
+
+Promise.<string>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Extracts a zip file to a target directory.
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name |
+
+
+ Type |
+
+
+
+
+
+ Description |
+
+
+
+
+
+
+
+
+ zipFilePath |
+
+
+
+
+
+string
+
+
+
+ |
+
+
+
+
+
+ The path of the zip file to extract. |
+
+
+
+
+
+
+ targetDirectory |
+
+
+
+
+
+string
+
+
+
+ |
+
+
+
+
+
+ The directory to extract the zip file to. |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Returns:
+
+
+
+ Returns true if the extraction is successful, false otherwise.
+
+
+
+
+
+ -
+ Type
+
+ -
+
+Promise.<string>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ generateSalt() → {string}
+
+
+
+
+
+
+
+ Generates a random salt code for WordPress configuration.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Returns:
+
+
+
+ - The generated salt code.
+
+
+
+
+
+ -
+ Type
+
+ -
+
+string
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ generateSalt() → {string}
+
+
+
+
+
+
+
+ Generates a random salt code for WordPress configuration.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Returns:
+
+
+
+ - The generated salt code.
+
+
+
+
+
+ -
+ Type
+
+ -
+
+string
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ getConfig() → {Object}
+
+
+
+
+
+
+
+ Reads wp-package.json from the root folder and extracts the value of the --template option or uses the default.
+The default config is used if no template is provided. Checks if the template file exists and reads it as JSON if it does.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Returns:
+
+
+
+ The configuration object.
+
+
+
+
+
+ -
+ Type
+
+ -
+
+Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ getConfig() → {Object}
+
+
+
+
+
+
+
+ Reads wp-package.json from the root folder and extracts the value of the --template option or uses the default.
+The default config is used if no template is provided. Checks if the template file exists and reads it as JSON if it does.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Returns:
+
+
+
+ The configuration object.
+
+
+
+
+
+ -
+ Type
+
+ -
+
+Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ getDownloadUrl(packageName, packageVersion, type) → {string}
+
+
+
+
+
+
+
+ Generates a download URL for a given package.
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name |
+
+
+ Type |
+
+
+
+
+
+ Description |
+
+
+
+
+
+
+
+
+ packageName |
+
+
+
+
+
+string
+
+
+
+ |
+
+
+
+
+
+ The name of the package. |
+
+
+
+
+
+
+ packageVersion |
+
+
+
+
+
+string
+
+
+
+ |
+
+
+
+
+
+ The version of the package (optional). |
+
+
+
+
+
+
+ type |
+
+
+
+
+
+string
+
+
+
+ |
+
+
+
+
+
+ The type of the package (e.g., 'plugins', 'themes'). |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Returns:
+
+
+
+ The download URL for the package.
+
+
+
+
+
+ -
+ Type
+
+ -
+
+string
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ getDownloadUrl(packageName, packageVersion, type) → {string}
+
+
+
+
+
+
+
+ Generates a download URL for a given package.
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name |
+
+
+ Type |
+
+
+
+
+
+ Description |
+
+
+
+
+
+
+
+
+ packageName |
+
+
+
+
+
+string
+
+
+
+ |
+
+
+
+
+
+ The name of the package. |
+
+
+
+
+
+
+ packageVersion |
+
+
+
+
+
+string
+
+
+
+ |
+
+
+
+
+
+ The version of the package (optional). |
+
+
+
+
+
+
+ type |
+
+
+
+
+
+string
+
+
+
+ |
+
+
+
+
+
+ The type of the package (e.g., 'plugins', 'themes'). |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Returns:
+
+
+
+ The download URL for the package.
+
+
+
+
+
+ -
+ Type
+
+ -
+
+string
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ getWordPressDownloadUrl(version, language) → {string}
+
+
+
+
+
+
+
+ Generates the download URL for a specific version of WordPress.
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name |
+
+
+ Type |
+
+
+
+
+
+ Description |
+
+
+
+
+
+
+
+
+ version |
+
+
+
+
+
+string
+
+
+
+ |
+
+
+
+
+
+ The version of WordPress. |
+
+
+
+
+
+
+ language |
+
+
+
+
+
+string
+
+
+
+ |
+
+
+
+
+
+ The language for the WordPress download. Defaults to 'en'. |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Returns:
+
+
+
+ The download URL for the specified version of WordPress.
+
+
+
+
+
+ -
+ Type
+
+ -
+
+string
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ getWordPressDownloadUrl(version, language) → {string}
+
+
+
+
+
+
+
+ Generates the download URL for a specific version of WordPress.
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name |
+
+
+ Type |
+
+
+
+
+
+ Description |
+
+
+
+
+
+
+
+
+ version |
+
+
+
+
+
+string
+
+
+
+ |
+
+
+
+
+
+ The version of WordPress. |
+
+
+
+
+
+
+ language |
+
+
+
+
+
+string
+
+
+
+ |
+
+
+
+
+
+ The language for the WordPress download. Defaults to 'en'. |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Returns:
+
+
+
+ The download URL for the specified version of WordPress.
+
+
+
+
+
+ -
+ Type
+
+ -
+
+string
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ geVarFromPHPFile(fileContent, variableName) → {string|null}
+
+
+
+
+
+
+
+ Reads a PHP file, extracts, and returns the WordPress version number.
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name |
+
+
+ Type |
+
+
+
+
+ Default |
+
+
+ Description |
+
+
+
+
+
+
+
+
+ fileContent |
+
+
+
+
+
+string
+
+
+
+ |
+
+
+
+
+
+
+ |
+
+
+ Path to the PHP file to read |
+
+
+
+
+
+
+ variableName |
+
+
+
+
+ |
+
+
+
+
+
+
+ $wp_version
+
+ |
+
+
+ The name of the variable to search adn replace |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Returns:
+
+
+
+ WordPress version number or null if not found or in case of an error
+
+
+
+
+
+ -
+ Type
+
+ -
+
+string
+|
+
+null
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ geVarFromPHPFile(fileContent, variableName) → {string|null}
+
+
+
+
+
+
+
+ Reads a PHP file, extracts, and returns the WordPress version number.
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name |
+
+
+ Type |
+
+
+
+
+ Default |
+
+
+ Description |
+
+
+
+
+
+
+
+
+ fileContent |
+
+
+
+
+
+string
+
+
+
+ |
+
+
+
+
+
+
+ |
+
+
+ Path to the PHP file to read |
+
+
+
+
+
+
+ variableName |
+
+
+
+
+ |
+
+
+
+
+
+
+ $wp_version
+
+ |
+
+
+ The name of the variable to search adn replace |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Returns:
+
+
+
+ WordPress version number or null if not found or in case of an error
+
+
+
+
+
+ -
+ Type
+
+ -
+
+string
+|
+
+null
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ (async) installNpmPackages(packageDirectory) → {Promise.<void>}
+
+
+
+
+
+
+
+ Installs npm packages in the specified package directory.
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name |
+
+
+ Type |
+
+
+
+
+
+ Description |
+
+
+
+
+
+
+
+
+ packageDirectory |
+
+
+
+
+
+string
+
+
+
+ |
+
+
+
+
+
+ The directory path where the package is located. |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Returns:
+
+
+
+ - A promise that resolves when the packages are installed and built.
+
+
+
+
+
+ -
+ Type
+
+ -
+
+Promise.<void>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ (async) installNpmPackages(packageDirectory) → {Promise.<void>}
+
+
+
+
+
+
+
+ Installs npm packages in the specified package directory.
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name |
+
+
+ Type |
+
+
+
+
+
+ Description |
+
+
+
+
+
+
+
+
+ packageDirectory |
+
+
+
+
+
+string
+
+
+
+ |
+
+
+
+
+
+ The directory path where the package is located. |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Returns:
+
+
+
+ - A promise that resolves when the packages are installed and built.
+
+
+
+
+
+ -
+ Type
+
+ -
+
+Promise.<void>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ (async) isWPCLIAvailable() → {boolean}
+
+
+
+
+
+
+
+ Checks if WP-CLI is available.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Returns:
+
+
+
+ - A promise that resolves to true if WP-CLI is available, false otherwise.
+
+
+
+
+
+ -
+ Type
+
+ -
+
+boolean
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ (async) isWPCLIAvailable() → {boolean}
+
+
+
+
+
+
+
+ Checks if WP-CLI is available.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Returns:
+
+
+
+ - A promise that resolves to true if WP-CLI is available, false otherwise.
+
+
+
+
+
+ -
+ Type
+
+ -
+
+boolean
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ makeDir()
+
+
+
+
+
+
+
+ Create a temporary directory if it does not already exist.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ makeDir()
+
+
+
+
+
+
+
+ Create a temporary directory if it does not already exist.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ renameFolder(oldPath, newPath)
+
+
+
+
+
+
+
+ Renames a folder from the old path to the new path.
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name |
+
+
+ Type |
+
+
+
+
+
+ Description |
+
+
+
+
+
+
+
+
+ oldPath |
+
+
+
+
+
+string
+
+
+
+ |
+
+
+
+
+
+ The path of the folder to be renamed. |
+
+
+
+
+
+
+ newPath |
+
+
+
+
+
+string
+
+
+
+ |
+
+
+
+
+
+ The new path of the folder. |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ renameFolder(oldPath, newPath)
+
+
+
+
+
+
+
+ Renames a folder from the old path to the new path.
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name |
+
+
+ Type |
+
+
+
+
+
+ Description |
+
+
+
+
+
+
+
+
+ oldPath |
+
+
+
+
+
+string
+
+
+
+ |
+
+
+
+
+
+ The path of the folder to be renamed. |
+
+
+
+
+
+
+ newPath |
+
+
+
+
+
+string
+
+
+
+ |
+
+
+
+
+
+ The new path of the folder. |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ replaceDbConstant(configContent, constantName, userDefinedValue) → {string}
+
+
+
+
+
+
+
+ Replaces a constant in the wp-config.php file with a user-defined value.
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name |
+
+
+ Type |
+
+
+
+
+
+ Description |
+
+
+
+
+
+
+
+
+ configContent |
+
+
+
+
+
+string
+
+
+
+ |
+
+
+
+
+
+ The content of the wp-config.php file. |
+
+
+
+
+
+
+ constantName |
+
+
+
+
+
+string
+
+
+
+ |
+
+
+
+
+
+ The name of the constant to replace. |
+
+
+
+
+
+
+ userDefinedValue |
+
+
+
+
+
+string
+
+
+
+ |
+
+
+
+
+
+ The user-defined value to set for the constant. |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Returns:
+
+
+
+ - The updated content with the replaced constant.
+
+
+
+
+
+ -
+ Type
+
+ -
+
+string
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ replaceDbConstant(configContent, constantName, userDefinedValue) → {string}
+
+
+
+
+
+
+
+ Replaces a constant in the wp-config.php file with a user-defined value.
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name |
+
+
+ Type |
+
+
+
+
+
+ Description |
+
+
+
+
+
+
+
+
+ configContent |
+
+
+
+
+
+string
+
+
+
+ |
+
+
+
+
+
+ The content of the wp-config.php file. |
+
+
+
+
+
+
+ constantName |
+
+
+
+
+
+string
+
+
+
+ |
+
+
+
+
+
+ The name of the constant to replace. |
+
+
+
+
+
+
+ userDefinedValue |
+
+
+
+
+
+string
+
+
+
+ |
+
+
+
+
+
+ The user-defined value to set for the constant. |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Returns:
+
+
+
+ - The updated content with the replaced constant.
+
+
+
+
+
+ -
+ Type
+
+ -
+
+string
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ replaceEmptySalts(configContent) → {string}
+
+
+
+
+
+
+
+ Replaces empty salts in the WordPress configuration with generated salt codes.
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name |
+
+
+ Type |
+
+
+
+
+
+ Description |
+
+
+
+
+
+
+
+
+ configContent |
+
+
+
+
+
+string
+
+
+
+ |
+
+
+
+
+
+ The content of the wp-config.php file. |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Returns:
+
+
+
+ - The updated content with replaced salts.
+
+
+
+
+
+ -
+ Type
+
+ -
+
+string
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ replaceEmptySalts(configContent) → {string}
+
+
+
+
+
+
+
+ Replaces empty salts in the WordPress configuration with generated salt codes.
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name |
+
+
+ Type |
+
+
+
+
+
+ Description |
+
+
+
+
+
+
+
+
+ configContent |
+
+
+
+
+
+string
+
+
+
+ |
+
+
+
+
+
+ The content of the wp-config.php file. |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Returns:
+
+
+
+ - The updated content with replaced salts.
+
+
+
+
+
+ -
+ Type
+
+ -
+
+string
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+