Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: plupload_default_settings

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
1648           'multipart'           => true,
1649           'urlstream_upload'    => true,
1650      );
1651
1652      // Multi-file uploading doesn't currently work in iOS Safari,
1653      // single-file allows the built-in camera to be used as source for images
1654      if ( wp_is_mobile() )
1655           $defaults['multi_selection'] = false;
1656
1657      $defaults = apply_filters( 'plupload_default_settings', $defaults );
1658
1659      $params = array(
1660           'action' => 'upload-attachment',
1661      );
1662
1663      $params = apply_filters( 'plupload_default_params', $params );
1664      $params['_wpnonce'] = wp_create_nonce( 'media-form' );
1665      $defaults['multipart_params'] = $params;
1666