plupload_default_settings filter-hookWP 3.4.0

Filters the Plupload default settings.

Usage

add_filter( 'plupload_default_settings', 'wp_kama_plupload_default_settings_filter' );

/**
 * Function for `plupload_default_settings` filter-hook.
 * 
 * @param array $defaults Default Plupload settings array.
 *
 * @return array
 */
function wp_kama_plupload_default_settings_filter( $defaults ){

	// filter...
	return $defaults;
}
$defaults(array)
Default Plupload settings array.

Changelog

Since 3.4.0 Introduced.

Where the hook is called

wp_plupload_default_settings()
plupload_default_settings
wp-includes/media.php 3912
$defaults = apply_filters( 'plupload_default_settings', $defaults );

Where the hook is used in WordPress

wp-includes/default-filters.php 609
add_filter( 'plupload_default_settings', 'wp_show_heic_upload_error' );