Software Engineering in WordPress, PHP, and Backend Development

Search: “namespaces” (Page 11 of 12)

We found 57 results for your search.

Organizing Files For The WordPress Settings API

[…] who has worked with any project of any size knows just how important having a clear organizational structure can be. Later versions of PHP have feature of namespaces which can help us to further organize the code, but if you’re having to work with an old version, you don’t have that luxury. That’s no […]

Data in The WordPress Settings API

[…] our files. Keeping everything in the root directory of the plugin, although functionality, isn’t a good practice. Instead, we need to have clearly defined directories that mirror the namespaces our code might eventually have (depending on the version of PHP you’re using). So in the next article, I’ll pause writing any new code and look […]

Inheritance With The WordPress Settings API

[…] database. It’s also a good time to clean up some of the code that we have so that it has a cleaner directory that mirror more-or-less what PHP namespaces would look like. Before writing any more code, we’re going to stop here and then take a look at how to do that in the next […]

Implementing An Interface For The WordPress Settings API

[…] dashboard, but we can also begin to organize the directory structure so that it mimics some type of logical consistency that will play well both with PHP namespaces, or with older versions of PHP. I’ll pickup with this in the next article. For now, this should be your first pass at implementing the interface […]

What Are WordPress Theme Extensions?

[…] it’s only for a specific theme, then it should be considered a theme extension. The Array Toolkit Plugin (For Array Themes) If older versions of PHP supported namespaces, then I would say that the code would be in a namespace directly related to the theme. Instead, for now, I’d say that all of the […]

« Older posts Newer posts »

© 2025 Tom McFarlin

Theme by Anders NorenUp ↑