Wp plugin toggle (WP-CLI)

Uit De Vliegende Brigade
Versie door Jeroen Strompf (overleg | bijdragen) op 28 nov 2023 om 11:00 (Nieuwe pagina aangemaakt met '<pre> $ wp help plugin toggle NAME wp plugin toggle DESCRIPTION Toggles a plugin's activation state. SYNOPSIS wp plugin toggle <plugin>... [--network]...')
(wijz) ← Oudere versie | Huidige versie (wijz) | Nieuwere versie → (wijz)
Naar navigatie springen Naar zoeken springen
$ wp help plugin toggle

NAME

  wp plugin toggle

DESCRIPTION

  Toggles a plugin's activation state.

SYNOPSIS

  wp plugin toggle <plugin>... [--network]

  If the plugin is active, then it will be deactivated. If the plugin is
  inactive, then it will be activated.

OPTIONS

  <plugin>...
    One or more plugins to toggle.

  [--network]
    If set, the plugin will be toggled for the entire multisite network.

EXAMPLES

    # Akismet is currently activated
    $ wp plugin toggle akismet
    Plugin 'akismet' deactivated.
    Success: Toggled 1 of 1 plugins.

    # Akismet is currently deactivated
    $ wp plugin toggle akismet
    Plugin 'akismet' activated.
    Success: Toggled 1 of 1 plugins.