plupload_init
Filters the default Plupload settings.
Usage
add_filter( 'plupload_init', 'wp_kama_plupload_init_filter' ); /** * Function for `plupload_init` filter-hook. * * @param array $plupload_init An array of default settings used by Plupload. * * @return array */ function wp_kama_plupload_init_filter( $plupload_init ){ // filter... return $plupload_init; }
- $plupload_init(array)
- An array of default settings used by Plupload.
Changelog
Since 3.3.0 | Introduced. |
Where the hook is called
plupload_init
wp-admin/includes/media.php 2214
$plupload_init = apply_filters( 'plupload_init', $plupload_init );
Where the hook is used in WordPress
wp-admin/includes/admin-filters.php 19
add_filter( 'plupload_init', 'wp_show_heic_upload_error' );