Throughout this lab, you learned about how to name variables and functions. It’s part of the syntax. But let’s go a little deeper. Names must be unique. Why? If you have two functions that are named exactly the same, how would PHP know which one to run? Think about it. It wouldn’t know which one you want. Aha! Therefore, you give unique names to functions, classes, etc. In WordPress, the defacto approach is to use prefixing. Why? In a nutshell, it gives a unique suffix to a function to avoid naming collisions. What do I mean by naming collisions? That’s […]
