mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
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
This commit is contained in:
parent
2ff0e8a3c2
commit
9705e4e72e
@ -663,6 +663,15 @@ function bulk_edit_posts( $post_data = null ) {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Fires after processing the post data for bulk edit.
|
||||
*
|
||||
* @since 6.2.0
|
||||
*
|
||||
* @param array $post_data Associative array containing the post data.
|
||||
*/
|
||||
do_action( 'bulk_edit_posts', $post_data );
|
||||
|
||||
return array(
|
||||
'updated' => $updated,
|
||||
'skipped' => $skipped,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user