Inline documentation for hooks in wp-admin/async-upload.php.
Props rzen for the initial patch. Fixes #25517. Built from https://develop.svn.wordpress.org/trunk@25942 git-svn-id: http://core.svn.wordpress.org/trunk@25901 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
a7465eb374
commit
95bf041b3a
|
@ -94,5 +94,16 @@ if ( $_REQUEST['short'] ) {
|
|||
} else {
|
||||
// long form response - big chunk o html
|
||||
$type = $_REQUEST['type'];
|
||||
echo apply_filters("async_upload_{$type}", $id);
|
||||
|
||||
/**
|
||||
* Filter the returned ID of an uploaded attachment.
|
||||
*
|
||||
* The dynamic portion of the hook name, $type, refers to the attachment type,
|
||||
* such as 'iamge', 'audio', 'video', 'file', etc.
|
||||
*
|
||||
* @since 2.5.0
|
||||
*
|
||||
* @param int $id Uploaded attachment ID.
|
||||
*/
|
||||
echo apply_filters( "async_upload_{$type}", $id );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue