plupload_default_settings
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
plupload_default_settings
wp-includes/media.php 4234
$defaults = apply_filters( 'plupload_default_settings', $defaults );
Where the hook is used in WordPress
wp-includes/default-filters.php 644
add_filter( 'plupload_default_settings', 'wp_show_heic_upload_error' );