Inline documentation for hooks in wp-admin/async-upload.php.
Props rzen for the initial patch. Fixes #25517. git-svn-id: https://develop.svn.wordpress.org/trunk@25942 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
3c1036d653
commit
d26d83a36d
@ -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
Block a user