Fix WP CLI when WPMM is active
-
We’ve been having some problems with WP CLI and WPMM and noticed that we were not the only ones:
https://www.ads-software.com/support/topic/allow-wp-cli-commands-to-run?replies=5Until WPMM comes with an update you can fix it by putting this code into a small plugin.
if ( defined( 'WP_CLI' ) && WP_CLI ) { add_action('plugins_loaded', function() { remove_action('plugins_loaded', array('WP_Maintenance_Mode', 'get_instance')); }, 8 ); }
- The topic ‘Fix WP CLI when WPMM is active’ is closed to new replies.