Opened 15 years ago
Closed 13 years ago
#18860 closed enhancement (wontfix)
Chromeless metaboxes
| Reported by: | scribu | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Administration | Version: | |
| Severity: | normal | Keywords: | has-patch needs-refresh |
| Cc: | Focuses: |
Description
On the post editing screen, the title and editor portions are just conditionally echoed based on post_type_supports().
Because of this, you can't add anything between them or above them, without using JavaScript.
The proposal:
- wrap them in callbacks and inject them through add_meta_box()
- add a $show_handle parameter to add_meta_box()
$show_handle == false would mean that the handle around the box would be invisible. This would mean that you wouldn't be able to drag the title and editor boxes around, which is ok, but you would be able to re-order them in PHP.
Attachments (1)
Change History (7)
#3
@
15 years ago
- Component General → Administration
- Keywords has-patch added; dev-feedback removed
After thinking more about this, the meta box API really isn't cut out for this.
Instead, I hook the callbacks directly to a 'before_post_meta_boxes' action. It's much easier to work with.
See 18860.diff.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
+1.