WP-CLI Posts

Clearing the WordPress oEmbed Cache

Posted in , ,

WordPress has great support for embedding content from other services just by using a URL. For example, if you paste a YouTube URL into the editor, when WordPress displays the post it will render an embedded YouTube player on your site. However, sometimes oEmbeds don’t load and you’re left with the text of the URL…

Unit Testing Custom WP-CLI Commands

Posted in , , , with 2 Comments

Recently I’ve been spending pretty much all my time working on Mergebot for Delicious Brains, which mainly consists of building the WordPress plugin part of the project. I’ve also been spending a good deal of time refactoring code, making code testable, and generally implementing best practices to ensure code is maintainable and has high unit…