📄️ MVC Overview
WordPress MVC (WPMVC) brings the proven Model-View-Controller (MVC) pattern to WordPress development, giving you clean separation of concerns for custom themes and plugins.
📄️ Models
In WordPress MVC (WPMVC), Models represent and manage your data objects. They handle interaction with the database — whether custom tables or WordPress core tables — providing a clean, object-oriented layer for fetching, saving, updating, and deleting records.
📄️ Post Models
Post Models are a type of model that can be created using the framework.
📄️ Option Models
Option Models are a type of model that can be created using the framework.
📄️ Term Models
Term Models are a type of model that can be created using the framework.
📄️ User Models
User Models are a type of model that can be created using the framework.
📄️ Comment Models
Comment Models are a type of model that can be created using the framework.
📄️ Controllers
Controllers handle business logic and behavior within a WordPress MVC (WPMVC) application. They respond to hooks, orchestrate models and views, and encapsulate the application’s control flow.
📄️ Views
Views in WordPress MVC (WPMVC) are templates responsible for generating the HTML output displayed to the user. They are essentially frontend assets that receive data (variables) from controllers and render markup accordingly.