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
1265           'multipart'           => true,
1266           'urlstream_upload'    => true,
1267      );
1268
1269      // Multi-file uploading doesn't currently work in iOS Safari,
1270      // single-file allows the built-in camera to be used as source for images
1271      if ( wp_is_mobile() )
1272           $defaults['multi_selection'] = false;
1273
1274      $defaults = apply_filters( 'plupload_default_settings', $defaults );
1275
1276      $params = array(
1277           'action' => 'upload-attachment',
1278      );
1279
1280      $params = apply_filters( 'plupload_default_params', $params );
1281      $params['_wpnonce'] = wp_create_nonce( 'media-form' );
1282      $defaults['multipart_params'] = $params;
1283