Deactivate a single plugin despite a PHP fatal error
deactivate plugin without admin access | there has been a critical error on this website | plugin causes fatal error | wp-cli | plugins | troubleshootingCaution: This command changes the system. Understand what it does before you run it.
wp plugin deactivate woocommerce --skip-plugins --skip-themes --path=/var/www/vhosts/example.com/httpdocsDeactivates 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