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
1548
1549 $post_params = array(
1550           "post_id" => $post_id,
1551           "_wpnonce" => wp_create_nonce('media-form'),
1552           "type" => $_type,
1553           "tab" => $_tab,
1554           "short" => "1",
1555 );
1556
1557 $post_params = apply_filters( 'upload_post_params', $post_params ); // hook change! old name: 'swfupload_post_params'
1558
1559 $plupload_init = array(
1560      'runtimes' => 'html5,silverlight,flash,html4',
1561      'browse_button' => 'plupload-browse-button',
1562      'container' => 'plupload-upload-ui',
1563      'drop_element' => 'drag-drop-area',
1564      'file_data_name' => 'async-upload',
1565      'multiple_queues' => true,
1566      'max_file_size' => $max_upload_size . 'b',