Function parseWpConfig

  • Parses the wp-config.php file in a WordPress installation and extracts defined constants and variables.

    Parameters

    • wpConfigContent: null | string

      The content of the wp-config.php file.

    Returns Record<string, string>

    • An object containing the extracted constants and variables, or null if there was an error parsing the file.

Generated using TypeDoc