Here’s a little piece of code I use for debugging when I evaluate sites and themes which I don’t know in detail. I simply drop this in a file and include this file from within the themes’ functions.php or simply by dropping it in wp-content/mu-plugins as something like 0-my-debugging.php or the like. Then all you […]
Continue reading
Archive | Snippets RSS feed for this section
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 this kind of actions.
Continue reading