Opened 11 years ago
Last modified 5 years ago
#25070 new enhancement
Add filter to use do_accordion_sections for post metaboxes
Reported by: | MZAWeb | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 3.6 |
Component: | Editor | Keywords: | has-patch dev-feedback |
Focuses: | administration | Cc: |
Description
It'd be really cool to be able to use the new do_accordion_sections to render post metaboxes. Adding a filter to allow devs to do that, will also make easier to render custom styles (tabs or whatever).
Attached patch is a really quick proof of concept.
Attachments (2)
Change History (11)
#5
@
11 years ago
+1 for the idea, -1 for the approach in 25070.2.diff
I think we first need to make a decision about whether to DRY up the repeated code between do_meta_boxes()
and do_accordion_sections()
, then we can look at adding a filter or a flag or something to make this possible.
In 44:ticket:23450 and 23450.14.diff:ticket:23450 I suggested an approach to combining the two functions, though it was definitely too late in the cycle to consider a refactor as @nacin pointed out a few comments later.
Related: #23450
#6
@
11 years ago
I agree, the patch is just a proof of concept to quickly see how the accordion metaboxes look and feel like.
I still like the idea of allowing for custom style callbacks, though.
Sample usage: