Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: upload_post_params

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
1861
1862 /**
1863  * Filters the media upload post parameters.
1864  *
1865  * @since 3.1.0 As 'swfupload_post_params'
1866  * @since 3.3.0
1867  *
1868  * @param array $post_params An array of media upload parameters used by Plupload.
1869  */
1870 $post_params = apply_filters( 'upload_post_params', $post_params );
1871
1872 /*
1873  * Since 4.9 the `runtimes` setting is hardcoded in our version of Plupload to `html5,html4`,
1874  * and the `flash_swf_url` and `silverlight_xap_url` are not used.
1875  */
1876 $plupload_init = array(
1877      'browse_button'       => 'plupload-browse-button',
1878      'container'           => 'plupload-upload-ui',
1879      'drop_element'        => 'drag-drop-area',