Make WordPress Core

Opened 8 years ago

Closed 8 years ago

Last modified 7 years ago

#24861 closed enhancement (fixed)


Reported by: yurivictor Owned by: helen
Milestone: 3.7 Priority: normal
Severity: trivial Version:
Component: General Keywords: has-patch needs-codex
Focuses: Cc:


Add in a hook before the edit form title similar to edit_form_after_title, except before.

Custom post formats UI used the post format options above the title since certain formats do not use the title. For example, an aside is typically styled without a title.

There is no current hook to address this situation.

Attachments (4)

24861.diff (547 bytes) - added by yurivictor 8 years ago.
Patch for #24861
24861.2.diff (877 bytes) - added by yurivictor 8 years ago.
24861.3.diff (541 bytes) - added by yurivictor 8 years ago.
24861.4.diff (808 bytes) - added by yurivictor 8 years ago.

Download all attachments as: .zip

Change History (14)

8 years ago

Patch for #24861

8 years ago

#1 @yurivictor
8 years ago

Updated hook to be more logical 24861.2.diff:

edit_form_before_title is directly before the title.

edit_form_before_form is before the form and spans the whole page, similar to previous post formats location.

#2 @helen
8 years ago

I can get behind edit_form_before_form (can it just be edit_form_before?); not sure about edit_form_before_title. When would be a good time to push the title field down but not the publish metabox?

8 years ago

#3 @yurivictor
8 years ago

Helen: Thanks. I agree about edit_form_before_title. Not a good use case.

Changed to edit_form_before

Fixed in 24861.3.diff

8 years ago

#4 @yurivictor
8 years ago

Moved to after opening form tag so people can add fields to use with the post form.

Changed to more logical name: edit_form_top

New update: 24861.4.diff

#5 @helen
8 years ago

#19358 was marked as a duplicate.

#6 @helen
8 years ago

  • Milestone changed from Awaiting Review to 3.7

#7 @helen
8 years ago

  • Owner set to helen
  • Resolution set to fixed
  • Status changed from new to closed

In 24831:

Add an edit_form_top hook to the post edit form. props yurivictor. fixes #24861.

#8 @DrewAPicture
8 years ago

  • Keywords needs-codex added

#9 follow-up: @adbox
7 years ago

I'd like to reopen this based on the issues raised in this stackoverflow ticket:

In my use case I'm not necessarily looking to add another metabox, and I want to stay within the left column parameters and within the <form> element container.

#10 in reply to: ↑ 9 @SergeyBiryukov
7 years ago

Replying to adbox:

I'd like to reopen this based on the issues raised in this stackoverflow ticket

They say edit_form_top is outside of the form, but that's not true.

This ticket was closed on a completed milestone, please create a new one. See also #29691.

Note: See TracTickets for help on using tickets.