Make WordPress Core

Opened 2 years ago

Closed 4 months ago

Last modified 3 months ago

#36085 closed enhancement (fixed)

Add action hook to get_inline_data()

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


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 10 months ago.
36085.2.diff (601 bytes) - added by NathanAtmoz 10 months ago.

Download all attachments as: .zip

Change History (11)

#1 @fabrisancho
17 months ago

This functionality will be very useful

#2 @johnbillion
10 months ago

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

#3 @NathanAtmoz
10 months ago

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

#4 @theorboman
10 months ago

  • Keywords has-patch added; needs-patch removed

#5 @DrewAPicture
4 months ago

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

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

#6 @johnbillion
4 months ago

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

#7 @johnbillion
4 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
3 months ago

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

#9 @johnbillion
3 months ago

#27833 was marked as a duplicate.

Note: See TracTickets for help on using tickets.