WP_REST_Request::set_file_params
Sets multipart file parameters from the body.
Typically, this is set from $_FILES.
Method of the class: WP_REST_Request{}
No Hooks.
Returns
null. Nothing (null).
Usage
$WP_REST_Request = new WP_REST_Request(); $WP_REST_Request->set_file_params( $params );
- $params(array) (required)
- Parameter map of key to value.
Changelog
| Since 4.4.0 | Introduced. |
WP_REST_Request::set_file_params() WP REST Request::set file params code WP 7.0
public function set_file_params( $params ) {
$this->params['FILES'] = $params;
}