WP Tavern › Forums › Create Topic
Chip Bennett 1. WordPress is more of a framework and Themes are more wrappers over it. 2. There is no separation between theme and logic of that framework… This really isn’t true. WordPress has an API for extensions, but uses two separate means for extension: Themes and Plugins. To be sure, both use the same actions/filters (Hooks) API, but they are intended for two different purposes: Themes define presentation of the front-end, and Plugins define functionality. Is the differentiation perfect? Not by a mile. But the differentiation is distinct enough to work. The biggest problems surface when a Theme is developed to include functional, rather than presentational, output. Because both Themes and Plugins have access to the same Hooks API (though a Theme only has access to a subset of those hooks, due to the processing order), a Theme is capable of including almost any functionality that a Plugin includes. But ability is not the same as propriety. There are areas of overlap (custom post types/taxonomies, drag-drop “builder” Theme UI, etc.), but 95% of issues can be resolved by proper segregation of presentation and functionality.
Chip Bennett
1. WordPress is more of a framework and Themes are more wrappers over it. 2. There is no separation between theme and logic of that framework…
1. WordPress is more of a framework and Themes are more wrappers over it.
2. There is no separation between theme and logic of that framework…
This really isn’t true.
WordPress has an API for extensions, but uses two separate means for extension: Themes and Plugins. To be sure, both use the same actions/filters (Hooks) API, but they are intended for two different purposes: Themes define presentation of the front-end, and Plugins define functionality.
Is the differentiation perfect? Not by a mile. But the differentiation is distinct enough to work.
The biggest problems surface when a Theme is developed to include functional, rather than presentational, output. Because both Themes and Plugins have access to the same Hooks API (though a Theme only has access to a subset of those hooks, due to the processing order), a Theme is capable of including almost any functionality that a Plugin includes. But ability is not the same as propriety.
There are areas of overlap (custom post types/taxonomies, drag-drop “builder” Theme UI, etc.), but 95% of issues can be resolved by proper segregation of presentation and functionality.
Name *
Email *
Website:
Topic Title (Maximum Length: 80):
Forum: — No forum —AI and WordPress Articles Blocks Showcase Discussions Events Introductions Jobs and Working in WordPress Podcast Episodes Site and Block Editor
Enter your email address to subscribe to this blog and receive notifications of new posts by email.
Email Address
Submit
Enter the destination URL
Or link to existing content