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
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
1667      $settings = array(
1668           'defaults' => $defaults,
1669           'browser'  => array(
1670                'mobile'    => wp_is_mobile(),
1671                'supported' => _device_can_upload(),
1672           ),