Function replaceDbConstant

  • Replaces a constant in the wp-config.php file with a user-defined value.

    Parameters

    • 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.

    Returns string

    • The updated content with the replaced constant.

Generated using TypeDoc