Where to write custom code (CRUD) in WordPress
Where to write custom code (CRUD) in WordPress
Where to write custom code (CRUD) in WordPress
WordPress dosen’t follow MVC (Model-View-Controller) nor is written with OOP approach in mind. Anyway you can write your plugins with a MVC pattern or using OOP. One excelent tool to use MVC in WordPress is WP MVC
Finally after a lot of digging into the core files, I found the way to add a submenu page. Here’s the stepwise solution if anyone is stuck on it! Lets assume you want to add a submenu page called ‘Sample’. 1.First, in the app/config/bootstrap.php file (you have to manually create it if it doesn’t exist) … Read more
is it recommended to start with an MVC framework for wordpress? Not really. WP has no native inclination or affinity for MVC. tbh it’s hard to follow/understand plugins as each developer use his own style (most of time it’s like spaghetti coding)… Welcome to WordPress. 🙂 Have no doubt though — people can mess up … Read more