Skip to content

Commit 9705e4e

Browse files
committed
Quick/Bulk Edit: Add an action hook on bulk_edit_posts().
This changeset introduces the `bulk_edit_posts` action hook, triggered after processing the post data for bulk edit and before it returns its results. For example, it allows developers to save additional data without having to perform any `.ajax()` call. Props helgatheviking, helen, Mte90, afercia, mrasharirfan, desrosj, itowhid06, pento, mensmaximus, audrasjb, costdev. Fixes #28112. git-svn-id: https://develop.svn.wordpress.org/trunk@55108 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 2ff0e8a commit 9705e4e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/wp-admin/includes/post.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -663,6 +663,15 @@ function bulk_edit_posts( $post_data = null ) {
663663
}
664664
}
665665

666+
/**
667+
* Fires after processing the post data for bulk edit.
668+
*
669+
* @since 6.2.0
670+
*
671+
* @param array $post_data Associative array containing the post data.
672+
*/
673+
do_action( 'bulk_edit_posts', $post_data );
674+
666675
return array(
667676
'updated' => $updated,
668677
'skipped' => $skipped,

0 commit comments

Comments
 (0)