Quick/Bulk Edit: Add an action hook to `bulk_edit_posts()` function.
This changeset introduces the `bulk_edit_posts` action hook, triggered after processing the post data for bulk edit and before the function returns its results. For example, it allows developers to save additional data without having to perform any `.ajax()` calls. Follow-up to [8973]. Props helgatheviking, helen, Mte90, afercia, mrasharirfan, desrosj, itowhid06, pento, mensmaximus, audrasjb, costdev, webcommsat, marybaum, oglekler, mukesh27, SergeyBiryukov. Fixes #28112. Built from https://develop.svn.wordpress.org/trunk@56091 git-svn-id: http://core.svn.wordpress.org/trunk@55603 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
b789345798
commit
d33f37603e
|
@ -681,6 +681,16 @@ function bulk_edit_posts( $post_data = null ) {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
do_action( 'bulk_edit_posts', $updated, $shared_post_data );
|
||||
|
||||
return array(
|
||||
'updated' => $updated,
|
||||
'skipped' => $skipped,
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.3-alpha-56090';
|
||||
$wp_version = '6.3-alpha-56091';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue