Archive
Tutorials
-
Use ${CLAUDE_SKILL_DIR} for Paths in Claude Code Plugin Skills
I keep my Claude Code skills in a single repo that doubles as a plugin marketplace. One of those skills, sounds-like-me, audits…
-
Requesting data in Gutenberg with getEntityRecords
WordPress’s ‘getEntityRecords’ selector greatly assists in fetching data for custom Gutenberg blocks. It requires understanding of parameters like EntityType, Kind, and Query…
-
Limiting the block count for InnerBlocks
The component is key for Gutenberg block developers, enabling complex block structures in WordPress. While flexibly allowing item insertion and ordering, it…
-
Restricting PluginDocumentSettingPanel by post type
Now that the PluginDocumentSettingPanel is in WordPress core, we can add our own panels to the Document Settings panel using the registerPlugin…
-
Better Unit Testing with DataProviders
When unit testing your code, there are times when you need to test the same method or function with a variety of…
-
New WordPress Plugin: Suspend Transients
Recently while working on a project in WordPress, I found myself adding and remove code to bypass cached transients. Needless to say,…
-
Setting up Unit Testing for WordPress Core
Recently I was running into issues with VVV running some units tests for AJAX. I was not able to remedy the issue…
-
Resetting $post in WordPress admin
I have run into a bug a few times in the past little while that had me stumped. When creating meta boxes…
-
WordPress Plugins and debug mode
Sometimes when we’re developing a plug-in, it’s easy to forget that we’re not building something that is meant to be standalone. What…
-
Change the WordPress post updated messages
Sometimes it is necessary to modify or remove the default WordPress post updated messages that are displayed when making changes to a…