plupload_init

Filters the default Plupload settings.

Description

apply_filters( 'plupload_init', (unknown) $plupload_init ); 

Parameters (1)

0. $plupload_init (unknown)
The plupload init.

Usage

To run the hook, copy the example below.
  1. $plupload_init = apply_filters( 'plupload_init', $plupload_init ); 
  2.  
  3. if ( !empty( $plupload_init ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the plupload_init callback 
  2. function filter_plupload_init( $plupload_init ) { 
  3. // make filter magic happen here... 
  4. return $plupload_init
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'plupload_init', 'filter_plupload_init', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'plupload_init', 'filter_plupload_init', 10, 1 ); 

Defined (1)

The filter is defined in the following location(s).

/ui/fields/plupload.php  
  1. $plupload_init = apply_filters( 'plupload_init', $plupload_init );