async_upload_video
The WordPress Core async upload video hook.
Description
Parameters (3)
- 0. $get_media_item (string) =>
'get_media_item'
- The get media item.
- 1. $int (int) =>
10
- The int.
- 2. $int (int) =>
2
- The int.
Usage
- To run the hook, copy the example below.
- $get_media_item = apply_filters( 'async_upload_video', $get_media_item, $int, $int );
- if ( !empty( $get_media_item ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the async_upload_video callback
- function filter_async_upload_video( $get_media_item, $int, $int ) {
- // make filter magic happen here...
- return $get_media_item;
- };
- // add the filter
- add_filter( 'async_upload_video', 'filter_async_upload_video', 10, 3 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( 'async_upload_video', 'filter_async_upload_video', 10, 3 );
Defined (1)
The filter is defined in the following location(s).
- /wp-admin/includes/admin-filters.php
- add_filter( 'async_upload_video', 'get_media_item', 10, 2 );