Class Initialize

Initialize class for generating WordPress configuration file.

Constructors

  • Constructor for a new instance of the class.

    Parameters

    • Optional wpFolder: string

      The path to the WordPress folder.

    • Optional outputPath: string

      The path to the output file.

    Returns Initialize

Properties

outputPath: string

The path to the output file.

wpFolder: string

The path to the WordPress folder.

Methods

  • Generates the configuration file for WordPress.

    Parameters

    • Optional options: {
          language?: string;
          version?: string;
      }

      The options for the initialization.

      • Optional language?: string
      • Optional version?: string

    Returns Promise<WPMMconfig>

    The configuration object.

  • Whenever the config file exists in the output path

    Returns boolean

  • Reads the configuration file.

    Returns any

  • Writes the configuration file.

    Parameters

    Returns void

Generated using TypeDoc