Action hook 'bulk_edit_posts'

in WP Core File wp-admin/includes/post.php at line 730

View Source

bulk_edit_posts

Action Hook
Description
Fires after processing the post data for bulk edit.

Hook Information

File Location wp-admin/includes/post.php View on GitHub
Hook Type Action
Line Number 730

Hook Parameters

Type Name Description
int[] $updated An array of updated post IDs.
array $shared_post_data Associative array containing the post data.

Usage Examples

Basic Usage
<?php
// Hook into bulk_edit_posts
add_action('bulk_edit_posts', 'my_custom_function', 10, 2);

function my_custom_function($updated, $shared_post_data) {
    // Your custom code here
}

Source Code Context

wp-admin/includes/post.php:730 - How this hook is used in WordPress core
<?php
 725  	 * @since 6.3.0
 726  	 *
 727  	 * @param int[] $updated          An array of updated post IDs.
 728  	 * @param array $shared_post_data Associative array containing the post data.
 729  	 */
 730  	do_action( 'bulk_edit_posts', $updated, $shared_post_data );
 731  
 732  	return array(
 733  		'updated' => $updated,
 734  		'skipped' => $skipped,
 735  		'locked'  => $locked,

PHP Documentation

<?php
/**
	 * Fires after processing the post data for bulk edit.
	 *
	 * @since 6.3.0
	 *
	 * @param int[] $updated          An array of updated post IDs.
	 * @param array $shared_post_data Associative array containing the post data.
	 */
Quick Info
  • Hook Type: Action
  • Parameters: 2
  • File: wp-admin/includes/post.php
Related Hooks

Related hooks will be displayed here in future updates.