mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
Docs: Further clarify the wp_ajax_save_attachment filter parameters description.
Follow-up to [55106]. See #23148. git-svn-id: https://develop.svn.wordpress.org/trunk@55111 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
02a08585ae
commit
9822010bb8
@ -3146,13 +3146,13 @@ function wp_ajax_save_attachment() {
|
||||
wp_update_post( $post );
|
||||
|
||||
/**
|
||||
* Fires after an attachment has been updated and before
|
||||
* the JSON response is sent.
|
||||
* Fires after an attachment has been updated via the Ajax handler
|
||||
* and before the JSON response is sent.
|
||||
*
|
||||
* @since 6.2.0
|
||||
*
|
||||
* @param array $post The attachment.
|
||||
* @param array $changes An array of changes.
|
||||
* @param array $post The attachment data.
|
||||
* @param array $changes An array containing the updated attachment attributes.
|
||||
*/
|
||||
do_action( 'wp_ajax_save_attachment', $post, $changes );
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user