namespaces

Base code for a WordPress theme using PHP namespaces

I provide a free public Github repository containing example code for starting work on a WordPress theme which uses PHP namespaces and template parts.

Base code for a WordPress plugin using PHP namespaces

I provide a free public Github repository containing example code for starting work on a WordPress plugin, which uses PHP namespaces.

An easy introduction to WordPress plugins with PHP classes

There are many copy-and-paste examples of how to write your own functions and apply them through WordPress’ hooks and actions. But with a little simple knowledge of PHP’s namespace syntax, developers who regularly work on WordPress projects can make their lives a lot easier, whilst making their code much more robust, portable and secure. The first thing to… (Read More)