[wp-trac] [WordPress Trac] #53195: Add $post or $post_id to the quick_edit_custom_box hook

WordPress Trac noreply at wordpress.org
Wed May 12 11:17:34 UTC 2021


#53195: Add $post or $post_id to the quick_edit_custom_box hook
-------------------------------+-----------------------------
 Reporter:  tomjdevisser       |      Owner:  (none)
     Type:  defect (bug)       |     Status:  new
 Priority:  normal             |  Milestone:  Awaiting Review
Component:  Posts, Post Types  |    Version:
 Severity:  normal             |   Keywords:  needs-patch
  Focuses:  administration     |
-------------------------------+-----------------------------
 Right now when you're adding a custom box to quick edit, you can't set an
 existing value without using JavaScript, cause you don't have acces to the
 post. For a more elaborate explanation, see the User Contributed Notes,
 top one by stevenlinx:
 https://developer.wordpress.org/reference/hooks/quick_edit_custom_box/

 It would be more elegant if we could just use the post within the hook I
 think.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/53195>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list