bulk_edit_posts
Fires after processing the post data for bulk edit.
Usage
add_action( 'bulk_edit_posts', 'wp_kama_bulk_edit_posts_action', 10, 2 ); /** * Function for `bulk_edit_posts` action-hook. * * @param int[] $updated An array of updated post IDs. * @param array $shared_post_data Associative array containing the post data. * * @return void */ function wp_kama_bulk_edit_posts_action( $updated, $shared_post_data ){ // action... }
- $updated(int[])
- An array of updated post IDs.
- $shared_post_data(array)
- Associative array containing the post data.
Changelog
Since 6.3.0 | Introduced. |
Where the hook is called
bulk_edit_posts
wp-admin/includes/post.php 724
do_action( 'bulk_edit_posts', $updated, $shared_post_data );