This may seem like it’s becoming something of a tradition, but if you’re a WP-CLI (WordPress Command Line Interface) user and you’ve recently updated your website to WordPress 4.6, you may notice that plugin updates no longer work correctly. You’ll probably get an error like this: PHP Fatal error: Call to undefined function apply_filters() in /Library/WebServer/Sites/example.dev/wp-includes/load.php […]
Don’t panic. Everything will be ok with these simple commands.
If WP-CLI stopped working after upgrading to Wordpress version 4.4 (or you’re getting a PHP Fatal error: Class ‘WP_Widget’ not found), here’s the solution.