Posts about 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.

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

  • 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…