Software Engineering in WordPress, PHP, and Backend Development

Search: “namespaces” (Page 6 of 12)

We found 57 results for your search.

How To Mitigate Side Effects in WordPress Development

[…] order – I recommend doing the following things to prevent side effects and conflicts when working on WordPress-specific code: Even if you’re not using object-oriented programming, use namespaces to keep all of your functions contained within their own context. Know the environment(s) in which you’re code is going to run and write for the […]

The Most Useful (Or Popular) Articles From 2022

[…] set of files that are needed to spin up a Composer-based WordPress Plugin. How to Dynamically Load Classes by Namespace in PHP. To dynamically load classes by namespaces in PHP, you need a Registry, and a way to parse the concrete files from a directory based on its namespace. Using Ray in WordPress Development: […]

Welcome!

[…] the more popular series I published are: Object-Oriented Programming in WordPress: A Summary Adding Custom Hooks in WordPress Creating Custom WordPress Administration Pages Internationalizing WordPress Projects Using Namespaces and Autoloading in WordPress Plugins Again, though the context in which some of the ideas are produced or shared may be dated, the principles often transcend […]

Writing Helper Functions in Procedural Programming in WordPress

[…] is, it’s still possible – and a good idea – keep domain-specific work contained within its own function. So even if you’re using a weird mix of namespaces and autoloading along with procedural programming, you can still take advantage of functions that do one thing and one thing well to help keep the code […]

« Older posts Newer posts »

© 2025 Tom McFarlin

Theme by Anders NorenUp ↑