Contactable\SWV
Rule::get_default_upload
Returns the default user upload file from $_FILES.
Метод класса: Rule{}
Хуков нет.
Возвращает
Объект. Default user upload file.
Использование
$Rule = new Rule(); $Rule->get_default_upload();
Код Rule::get_default_upload() Rule::get default upload CF7 6.1.6
public function get_default_upload() {
$field = $this->get_property( 'field' );
if ( isset( $_FILES[$field] ) ) {
return (object) wp_unslash( $_FILES[$field] );
}
return (object) array();
}