PHP namespaces are almost ten years old.
Despite a decade passing by since PHP v5.3 was released many developers still don’t have a basic understanding of namespaces.
Truth be told WordPress doesn’t use namespaces so “you don’t need to know how to use namespaces if you only work with WordPress.” You don’t need to be a namespace ninja but getting a grasp on the basics is simple and does you good.
That’s why WordPress and a lot of other big codebases don’t use native namespaces.
It provides a way to import code from other PHP namespaces into the current namespace or to refer to an external (fully qualified) name with an alias.

Leave a Reply

Newsletter

Sign up for our newsletter to stay updated.

About

Curated WordPress Resources