WordPress.org

Make WordPress Core

Opened 5 years ago

Closed 5 years ago

#29691 closed enhancement (fixed)

Need for a hook in between Edit Title and Edit Permalink

Reported by: captaintheme Owned by:
Milestone: 4.1 Priority: normal
Severity: normal Version: 4.1
Component: Editor Keywords: has-patch commit
Focuses: ui, administration Cc:

Description

It would be nice to add a hook in between the #titlewrap div (title) and .inside div (permalink).

At the moment the only way to hook into this area is to use the edit_form_after_title hook. I think it may be better to move this hook to be actually after the title but that would probably cause issues for some people already hooking into this.

I propose to add a new edit_form_before_permalink hook.

This came up in an issue for the Subtitles plugin here - https://github.com/philiparthurmoore/Subtitles/issues/30

Re: /wp-admin/edit-form-advanced.php

I will add a patch in a moment.

Attachments (1)

29691_before_permalink_hook0001.diff (1.1 KB) - added by captaintheme 5 years ago.
Patch for #29691

Download all attachments as: .zip

Change History (7)

#1 @captaintheme
5 years ago

I hope I did that right. If not please let me know.

#2 @philiparthurmoore
5 years ago

+1, for obvious reasons.

#3 @SergeyBiryukov
5 years ago

  • Milestone changed from Awaiting Review to 4.1

#4 @shooper
5 years ago

  • Keywords has-patch added

#5 @SergeyBiryukov
5 years ago

  • Keywords commit added

#6 @SergeyBiryukov
5 years ago

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

[30028] missed the ticket.

Note: See TracTickets for help on using tickets.