Create a Meta Box class
|Reported by:||ericmann||Owned by:||nacin|
Widgets became much more extensible when we introduced the WP_Widget class in version 2.8. New widgets were easier to make, and we finally had the ability to create multi-instance widgets without a lot of coding overhead and headaches.
Meta Boxes are used by themes and plug-ins in a similar fashion to customize the layout and functionality of the post/page/custom-post-type edit screen. Unfortunately, the code for creating a new meta box and handling the subsequent form submission is difficult to track down, prone to errors, and nearly impossible to use in a multi-instance situation.
We should abstract the meta box creation process so that adding a new meta box is as easy as adding a new widget - just extend a WP_Meta_Box class to add the functionality.
Change History (23)
- Keywords needs-patch added
- Milestone changed from Awaiting Review to Future Release
comment:21 @nacin — 5 years ago
- Keywords gci removed
- Owner set to nacin
- Status changed from new to reviewing