hitchhackerguide.com
Initialize WordPress from a PHP CLI script
I sometimes run scripts from the command line and still need WordPress functionality and the regular WordPress environment. Here’s a very basic script that I usually use as a structure for th…