Wordpress Wrappers


Due to closures not being supported in older versions of PHP, it can lead to messy code creation when working with Wordpress’s various filter and action functions. This is where taking an object oriented approach makes a lot of sense. A class the perfect solution to organise (and stardardise) any extended Wordpress functionality. In particular organistation and readability are vastly improved. I tend to use these wrapper classes as a framework and are structure in a way that can be easily adapted.

Shortcode Wrapper

Custom Post Type Wrapper

Custom Metabox Wrapper