[wp-trac] [WordPress Trac] #28112: bulk_edit_posts() function needs an action hook

WordPress Trac noreply at wordpress.org
Sun Jun 18 12:23:46 UTC 2023


#28112: bulk_edit_posts() function needs an action hook
-------------------------------------------------+-------------------------
 Reporter:  helgatheviking                       |       Owner:  audrasjb
     Type:  enhancement                          |      Status:  reopened
 Priority:  normal                               |   Milestone:  6.3
Component:  Quick/Bulk Edit                      |     Version:  3.9
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch dev-feedback needs-        |     Focuses:
  testing has-testing-info                       |
-------------------------------------------------+-------------------------
Changes (by oglekler):

 * keywords:  has-patch dev-feedback needs-testing => has-patch dev-feedback
     needs-testing has-testing-info


Comment:

 I changed my mind, I think we should add this action, it can be useful.
 But use cases will not appear until it will be in the core. We are in 9
 days to the Beta, and this is probably simplest from all other
 enhancements we have. So, it can be in Beta 1 in no time.

 I tested the patch, even if it is a simple one, it is still applicable.

 Here the data which is going to this action:

 {{{
 Array
 (
     [s] =>
     [post_status] => draft
     [post_type] => page
     [_wpnonce] => 0276e53341
     [_wp_http_referer] => /wp-admin/edit.php?post_type=page&paged=1
     [action] => edit
     [m] => 0
     [paged] => 1
     [bulk_edit] => Update
     [post_view] => list
     [screen] => edit-page
     [post] => Array
         (
             [0] => 24
             [1] => 25
             [2] => 26
         )

     [action2] => edit
     [post_ID] => 26
     [post_mime_type] =>
     [comment_status] => open
     [ping_status] => closed
     [post_author] => 1
     [ID] => 26
     [user_ID] => 1
 )
 }}}

 One of the use cases can be - update of these posts in some other place
 via webhook.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/28112#comment:50>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list