Installing WordPress Coding standards Globally

When possible I like to code using the WordPress coding Standards. I always set my PHPstorm coding style to WordPress. And when I start a new plugin I implement the PHPCodeSniffer rules for WordPress.In the most ideal scenario you can include these in your composer settings, but that’s not always possible so it’s handy to … Continue reading “Installing WordPress Coding standards Globally”

WordPress filters and anonymous functions

Anonymous functions have been around for a long time. And since WordPress now supports php 5.6 it can be safely used.And appears to be allowed? Personally I’m not a fan of anonymous functions in combination with WordPress actions and filters. My main concern is you can’t remove them once registered. How ever today I found … Continue reading “WordPress filters and anonymous functions”