WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #28112, comment 19


Ignore:
Timestamp:
03/14/2019 10:23:54 PM (21 months ago)
Author:
mensmaximus
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #28112, comment 19

    initial v1  
    44I 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()`.
    55
    6 To save custom data from bulk edit you can use the action hook `wp_insert_post_data`. It passes `$postarr` as second argument containing all values from `$_POST`.
     6To 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`.