Changes between Initial Version and Version 1 of Ticket #28112, comment 19
- Timestamp:
- 03/14/2019 10:23:54 PM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #28112, comment 19
initial v1 4 4 I did some testing and found none of these action hooks can be utilized to save custom data from bulk edit because `$_POST` is empty if `wp_insert_post()` gets invoked by `bulk_edit_posts()`. 5 5 6 To save custom data from bulk edit you can use the actionhook `wp_insert_post_data`. It passes `$postarr` as second argument containing all values from `$_POST`.6 To save custom data from bulk edit you can use the filter hook `wp_insert_post_data`. It passes `$postarr` as second argument containing all values from `$_POST`.