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. Built from https://develop.svn.wordpress.org/trunk@55108 git-svn-id: http://core.svn.wordpress.org/trunk@54641 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
c0b3839620
commit
73f6748ea4
|
@ -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(
|
return array(
|
||||||
'updated' => $updated,
|
'updated' => $updated,
|
||||||
'skipped' => $skipped,
|
'skipped' => $skipped,
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '6.2-alpha-55107';
|
$wp_version = '6.2-alpha-55108';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue