plupload_default_settings
Filters the Plupload default settings.
Description
Parameters (1)
- 0. $array (callback) =>
array( $this, 'videopress_pluploder_config' )
- The array.
Usage
- To run the hook, copy the example below.
- $array = apply_filters( 'plupload_default_settings', $array );
- if ( !empty( $array ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the plupload_default_settings callback
- function filter_plupload_default_settings( $array ) {
- // make filter magic happen here...
- return $array;
- };
- // add the filter
- add_filter( 'plupload_default_settings', 'filter_plupload_default_settings', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( 'plupload_default_settings', 'filter_plupload_default_settings', 10, 1 );
Defined (1)
The filter is defined in the following location(s).
- /modules/videopress/class.jetpack-videopress.php
- add_filter( 'plupload_default_settings', array( $this, 'videopress_pluploder_config' ) );