upload_post_params
Filters the media upload post parameters.
Usage
add_filter( 'upload_post_params', 'wp_kama_upload_post_params_filter' ); /** * Function for `upload_post_params` filter-hook. * * @param array $post_params An array of media upload parameters used by Plupload. * * @return array */ function wp_kama_upload_post_params_filter( $post_params ){ // filter... return $post_params; }
- $post_params(array)
- An array of media upload parameters used by Plupload.
Changelog
Since 3.3.0 | Introduced. |
Since 3.1.0 | As 'swfupload_post_params' |
Where the hook is called
upload_post_params
wp-admin/includes/media.php 2168
$post_params = apply_filters( 'upload_post_params', $post_params );