function allow_html_uploads($mimes) { $mimes['html'] = 'text/html'; return $mimes; } add_filter('upload_mimes', 'allow_html_uploads');