Category: WordPress
-
PHP_CS in Neovim
I recently switched to only Neovim as my editor of choice and I hit a few issues with formatting PHP code to follow the WordPress coding standards. I didn’t find a simple guide to follow that worked for my case so I decided to write one which I can refer to in the future 🙂…
-
Set custom pattern in core/query picker
Full code example: The code has two parts: The wp.domReady is needed for the removal of the pre-exiting patterns in the query loop.
-
Setup theme.json with custom colors for WordPress 5.8
This post is more of a “research” note I had while looking into the theme.json file for themes on WordPress 5.8. You can read the introduction post here: Introducing theme.json in WordPress 5.8 – Make WordPress Core or the documentation here: Global Settings & Styles (theme.json) | Block Editor Handbook | WordPress Developer Resources. What…