Class Updater

Represents the Updater class.

Constructors

Properties

config: WPMMconfig

THe configuration object.

Methods

  • A description of the entire function.

    Parameters

    • argv: UpdateObject

      An object containing the update options. It should have the following properties: - updateWordPress: boolean - updateAll: boolean - updateThemes: boolean - updatePlugins: boolean

    Returns Promise<void>

    A promise that resolves when the function completes.

  • Update plugins.

    Returns Promise<void>

    Async

    Function

    updatePlugins - Updates plugins using the wp plugin install command.

    Throws

    If there is an error updating the plugins.

  • Updates the themes in the configuration by installing and activating them.

    Returns Promise<void>

    updateThemes - Updates themes using the wp theme install command.

    Async

  • Updates the WordPress installation.

    Returns Promise<void>

    A promise that resolves when the update is complete.

Generated using TypeDoc