Opened 13 years ago
Closed 11 years ago
#26267 closed enhancement (fixed)
Do action before #minor-publishing-actions in publish meta-box
| Reported by: | jonathanbardo | Owned by: | chriscct7 |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.4 |
| Component: | Editor | Version: | |
| Severity: | normal | Keywords: | has-patch commit |
| Cc: | Focuses: | administration |
Description
I've stumble on a use case where we would have to create a custom preview button on the publish meta-box.
There is currently no hook to add custom content at the end of the #minor-publishing-actions div.
I propose adding a hook right before the division is closed.
Attachments (4)
Change History (17)
#2
@
13 years ago
I would prefer having the option that might result in a little clutter due to plugins than to not have the option.
#3
follow-up:
↓ 4
@
13 years ago
I think I'm more worried about maintaining compat into the future :)
#4
in reply to: ↑ 3
@
13 years ago
Replying to helen:
I think I'm more worried about maintaining compat into the future :)
Maybe I'm just being daft but I'm having trouble thinking of compatibility issues this might raise in the future. Could you give me an example?
#5
@
13 years ago
I'm also having problem with foreseeing compatibilities issues. Right now the only way we can add a custom button to the publish meta-box is at the end. Having a hook here would make it more flexible.
#8
@
11 years ago
- Focuses administration added
- Keywords has-patch added; 2nd-opinion removed
- Milestone Awaiting Review → 4.4
- Owner set to
- Status new → accepted
#11
@
11 years ago
- Keywords needs-refresh added; commit removed
both of those actions should have $post passed to them to not have to rely on globals, which are gross
#12
@
11 years ago
- Keywords commit added; needs-refresh removed
26267.2.patch adds a $post parameter to both the new hook and the post_submitbox_misc_actions hook (with a changelog entry).
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Adding a hook here is making me nervous for some reason, even though I usually love hooks on the edit screen. The publish metabox is already so cluttered and maintaining compat with hooks can make rethinking difficult. Would like some more opinions here.