PHP Namespaces in WordPress

Namespaces are a feature that was introduced in 2009 as part of PHP 5.3. As of this writing, the current version of PHP is 5.6.13, and the anticipated release of PHP 7.0 is rapidly approaching. So why aren’t WordPress theme and plugin developers using namespaces to organize their code? Our colleagues in other PHP projects … Read more » PHP Namespaces in WordPress

PHP Magic Methods –

Let’s say you’re developing an Object-Oriented PHP application. You’ve heard about PHP’s magic methods and have been curious about them — what are they?  How do I use them? why would I want to? Let’s work together to answer those questions. Magic methods are a feature of PHP’s object orientation. Magic methods are methods that … Read more » PHP Magic Methods –