↑ ↓ select, Enter open, Esc close

Deactivate a single plugin despite a PHP fatal error

Caution: This command changes the system. Understand what it does before you run it.

Adjust the values, the command updates live
user@server
wp plugin deactivate woocommerce --skip-plugins --skip-themes --path=/var/www/vhosts/example.com/httpdocs

Deactivates exactly one plugin. With --skip-plugins and --skip-themes, WP-CLI loads neither plugins nor theme, so a broken plugin cannot crash the command itself. Useful when the error log already points to a specific plugin.

Note: The plugin name is the folder name under wp-content/plugins, not the display name.

Also searched as

  • deactivate plugin without admin access
  • there has been a critical error on this website
  • plugin causes fatal error

Related one-liners

All in WP-CLI

Read first, then run.

The commands on myline.de act directly on servers, files and databases. A wrong path or placeholder can delete data irreversibly or make a server unreachable.

  • All commands are provided without warranty and are not tested on every system.
  • Understand what a command does before running it, and check every placeholder.
  • Make a backup first and, if possible, try it on a test system.
  • You run commands at your own risk. Liability for damages is excluded to the extent permitted by law.