[wp-trac] [WordPress Trac] #28112: bulk_edit_posts() function needs an action hook
WordPress Trac
noreply at wordpress.org
Sat Jan 21 10:58:58 UTC 2023
#28112: bulk_edit_posts() function needs an action hook
--------------------------------------+-----------------------
Reporter: helgatheviking | Owner: audrasjb
Type: enhancement | Status: reopened
Priority: normal | Milestone: 6.2
Component: Quick/Bulk Edit | Version: 3.9
Severity: normal | Resolution:
Keywords: has-patch needs-dev-note | Focuses:
--------------------------------------+-----------------------
Comment (by audrasjb):
Replying to [comment:32 SergeyBiryukov]:
>
> Also, if my reading of comment:3 is correct, it seems like this action
might not actually be needed after all, as the use case from the ticket
description can be achieved via existing hooks, e.g `save_post`?
> > All that said, my digging did eventually bring me to the revelation
that bulk edit is processed by a loop that hits `wp_insert_post()` so
actually the ability to save bulk edit details doesn't require ajax at all
and can run on the exact same `save_post` routine that quick edit and meta
boxes already use.
I might be wrong, but I think the issue if that there is no way to
determine the context of the process (in this case: running a bulk edit
process).
--
Ticket URL: <https://core.trac.wordpress.org/ticket/28112#comment:33>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list