Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: plupload_default_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
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
1284      $settings = array(
1285           'defaults' => $defaults,
1286           'browser'  => array(
1287                'mobile'    => wp_is_mobile(),
1288                'supported' => _device_can_upload(),
1289           ),