You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks, @tobeycodes. I've added this to the Internal Tools working group agenda to be discussed. If you have any additional context/information that would be useful for those reviewing this, I'd greatly appreciate it if you could add it.
From my perspective, the issue here is that we have classes containing actions/filters, but then we also have functional PHP files containing actions/filters. The issue with mixing them is that:
We end up with poorly organised code because engineers disagree about where the best place to put them is.
Mixing functional and OOP code can be confusing when we could use OOP for everything.
Having one or the other would make it easier to implement tests across projects/the scaffold as we'd need less manual loading.
https://github.com/10up/wp-scaffold/tree/trunk/themes/10up-theme/includes
We should be consistent with how we use actions/filters. Either we should use functions everywhere or classes everywhere.
The text was updated successfully, but these errors were encountered: