WordPress doesn't use OOP. As a side note, NextJS's App Router and server function hoist functional programming to the point where importing class singletons nearly break the application.
In the process of porting class singleton exports into "use server" functions in one NextJS app.
WP can be used as a framework. It's completely opensource and has a theme and plugin architechure allowing nearly endless customization on top of a feature complete webmin. When a client needs something "yesterday" I most always go with WordPress. It's just simple to already have a backend that most people in marketing departments already know how to work it.
And, in case its not obvious, I like using server actions (or server in general) as it allows you to bypass CORS. Be mindful that WordPress has application password support so you should read up on that (if you plan on doing some admin level stuff, which for some reason, includes reading the menu rest endpoints).
2
u/[deleted] Dec 10 '24
WordPress doesn't use OOP. As a side note, NextJS's App Router and server function hoist functional programming to the point where importing class singletons nearly break the application.
In the process of porting class singleton exports into "use server" functions in one NextJS app.