This is one of those “I know this is possible, but don’t know how”. Only useful for simple onelines. You’re very likely to be better of putting code in a php file and run that script like: Run PHP with WordPress loaded. Of course your good old friend wp-cli can help.It can run code with … Continue reading Running php from command line
Often you need the filename. And if you only need the file name that’s annoying to parse. –porcelain flag to the rescue! This will work on a lot of commands that have one item output.Stuff like wp post create ….Here is a complete list of commands that have the –porcelain flag Commands that output more … Continue reading wp cli output format with –porcelain
I wanted to include one directory form an svn repo.With help of stackoverflow I found the solution. There is a downside, it won’t update. Unless you up the version inside the repositories block.The upside is that this is lightweight, especially if the rest of the repo is big.This is rarely the right solution.
Yesterday I joined the WPmeetup Zwolle.The topic; translations Translations are not new to me, but I did learn a few things. Extra comments can be given using this format /* translators:extra explaining comment */This does not work in poedt 🙁 How to use translate.wordpress.org and that it runs on the plugin GlotPress
During WordCamp Rotterdam I worked on a small bug in WP-CLI. A bug I found roughly six months ago.The bug itself was a one line fix.I was asked to create functional tests using behat which I didn’t even heard off before. So after checking the handbook and with help of a few others. It resulted … Continue reading Behat functional tests
How is this blog build. What theme, plugins and such.