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

WordPress Trac noreply at wordpress.org
Wed Mar 13 08:26:42 UTC 2019


#28112: bulk_edit_posts() function needs an action hook
------------------------------------+-----------------------------
 Reporter:  helgatheviking          |       Owner:  (none)
     Type:  enhancement             |      Status:  assigned
 Priority:  normal                  |   Milestone:  Future Release
Component:  Quick/Bulk Edit         |     Version:  3.9
 Severity:  normal                  |  Resolution:
 Keywords:  dev-feedback has-patch  |     Focuses:
------------------------------------+-----------------------------

Comment (by mensmaximus):

 Replying to [comment:17 pento]:
 > I'm not entirely sure what the `bulk_edit_posts` action is supposed to
 do. It's passed `$post_data`, which changes for each post, but it happens
 outside of the post loop, so it's only called once with the data from the
 last post edited.

 As far as I understand @helgatheviking wants to save additional data added
 to the bulk edit meta box by avoiding an ajax call. Assuming this to be
 the case the patch provided won't work for that purpose as @pento already
 mentioned.

 Imho such a hook is not necessary at all because there are three action
 hooks available to further manipulate a post after it got updated:
 `edit_post_{$post->post_type}`, `edit_post` and `post_updated`

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


More information about the wp-trac mailing list