WordPress.org

Make WordPress Core

Opened 3 years ago

Closed 6 months ago

Last modified 6 months ago

#36085 closed enhancement (fixed)

Add action hook to get_inline_data()

Reported by: mensmaximus Owned by: johnbillion
Milestone: 4.9.8 Priority: normal
Severity: normal Version:
Component: Posts, Post Types Keywords: good-first-bug needs-docs has-patch fixed-major
Focuses: administration Cc:

Description

Working with customs fields in quickedit for custom post types would be much easier if one could add custom data to the get_inline_data() function in /wp-admin/includes/template.php. An action hook like do_action( 'add_inline_data', $post ) right before the closing div would be a great enhancement.

Attachments (2)

36085.1.diff (1.5 KB) - added by NathanAtmoz 18 months ago.
36085.2.diff (601 bytes) - added by NathanAtmoz 18 months ago.

Download all attachments as: .zip

Change History (18)

#1 @fabrisancho
2 years ago

This functionality will be very useful

#2 @johnbillion
18 months ago

  • Focuses administration added
  • Keywords needs-patch good-first-bug needs-docs added
  • Type changed from feature request to enhancement

#3 @NathanAtmoz
18 months ago

First attempt at a patch. Not sure how I messed up the first diff.

#4 @theorboman
18 months ago

  • Keywords has-patch added; needs-patch removed

#5 @DrewAPicture
12 months ago

  • Owner set to nathanatmoz
  • Status changed from new to assigned

Assigning to mark the good-first-bug as "claimed".

#6 @johnbillion
12 months ago

  • Milestone changed from Awaiting Review to 5.0
  • Owner changed from nathanatmoz to johnbillion
  • Status changed from assigned to reviewing

#7 @johnbillion
12 months ago

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

In 42676:

Posts, Post Types: Add a new add_inline_data action which allows extra fields to be added to the inline editing fields.

Props mensmaximus, NathanAtmoz

Fixes #36085

#8 @pbiron
11 months ago

dup of #27833, so that other ticket should also be closed.

#9 @johnbillion
11 months ago

#27833 was marked as a duplicate.

#10 @pbiron
7 months ago

any chance we can get this in 4.9.7?

This ticket was mentioned in Slack in #core by jon_bossenger. View the logs.


7 months ago

This ticket was mentioned in Slack in #core by pbiron. View the logs.


6 months ago

#13 @pbiron
6 months ago

  • Keywords fixed-major added
  • Milestone changed from 5.0 to 4.9.8
  • Resolution fixed deleted
  • Status changed from closed to reopened

#14 @pbiron
6 months ago

repoened for backport to 4.9.8

Last edited 6 months ago by pbiron (previous) (diff)

#15 @SergeyBiryukov
6 months ago

In 43460:

Docs: Change @since entry for add_inline_data action added in [42676] to 4.9.8.

See #36085.

#16 @SergeyBiryukov
6 months ago

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

In 43461:

Posts, Post Types: Add a new add_inline_data action which allows extra fields to be added to the inline editing fields.

Props mensmaximus, NathanAtmoz.
Merges [42676] and [43460] to the 4.9 branch.
Fixes #36085.

Note: See TracTickets for help on using tickets.