Make WordPress Core

Opened 7 years ago

Closed 5 years ago

#18860 closed enhancement (wontfix)

Chromeless metaboxes

Reported by: scribu Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Administration Keywords: has-patch needs-refresh
Focuses: Cc:


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)

18860.diff (6.8 KB) - added by scribu 7 years ago.

Download all attachments as: .zip

Change History (7)

#1 @nacin
7 years ago


#2 @toscho
7 years ago

  • Cc info@… added

7 years ago

#3 @scribu
7 years ago

  • Component changed from General to 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.

#4 @c3mdigital
5 years ago

  • Keywords needs-refresh added

#5 @buffler
5 years ago

  • Cc jeremy.buller@… added

#6 @helen
5 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to wontfix
  • Status changed from new to closed

We have edit_form_top, edit_form_after_title, and edit_form_after_editor now. Original use case seems satisfied; if callbacks or something else are still desired, feel free to open a new ticket for that.

Note: See TracTickets for help on using tickets.