How to reload environment within wp shell
-
When running
wp shell
and as an example, I callget_option()
, I get value A, as expected. When I then modify the site via browser and set that option via dashboard to B,wp shell
environment still reports value as A. If I relaunch the shell by exiting and runningwp shell
again, value is now B.Is there a way to reinit the whole WP app state within
wp shell
without having to exit?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘How to reload environment within wp shell’ is closed to new replies.