How to load WP in command-line mode without the plugins ?
-
Hi,
I am running WordPress in CLI / command-line mode, with the following :define('PATH_TO_WPLOAD', '/websiteroot/html/wp/wp-load.php'); require_once(PATH_TO_WPLOAD);
With this way, wp-load.php loads the “real” WordPress environment.
Now, what I need is to prevent some plugins from loading, because I don’t need them in CLI mode and they consume a lot of memory.
Is there an easy way to do that ?
Thank you,
Looic.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘How to load WP in command-line mode without the plugins ?’ is closed to new replies.