Wrap it Up
Lab: Ins and Outs of PHP Namespace for WordPress
Video Runtime: 07:42
Whew, you did it! Congratulations for completing this lab! Let’s review what you learned as well as show you the code here on Know the Code.
Remember, namespacing is only available in PHP version 5.3.0 and up. That shouldn’t be a problem for you. Why? Because 5.3 stopped being supported back in 2014. It’s old. Anything older than it can be problematic. Therefore, build your code to be at least 5.3 and up. You can check the PHP supported versions by clicking here.
I highly recommend the #PHP Namespacing for #WordPress. I learned so much! Share on X #PHP namespace is a better naming convention than prefixing for #WordPress. Come learn here Share on XWhat to Do Next?
Once upon a time, there was a developer... You! This is going to be a good story...
Episodes
Total Lab Runtime: 02:25:26
- 1 Lab Introductionfree 02:59
- 2 What and Why of Namespacingfree 20:15
- 3 Why Namespacing instead of Prefixing?free 12:39
- 4 The Basicspro 17:36
- 5 Fully Qualified Namingpro 06:50
- 6 Callbacks and Namespacingpro 08:00
- 7 Name Resolution Rulespro 12:17
- 8 Using Functions from Another Namespacepro 16:37
- 10 Class Basicspro 12:20
- 11 Practical Example: Convert from Prefixingpro 10:08
- 12 Real World Example: Convert from Prefixingpro 06:14
- 13 Architecture - Building in Packages and Modulespro 08:59
- 14 PHP Examples - Laravel & Symfonypro 02:50
- 15 Wrap it Upfree 07:42