WordPress 函数:sanitize_mime_type

清理 mine type

用法

<?php sanitize_mime_type( $mime_type ); ?>

参数

$mime_type
(string) (required) Mime Type
Default: None

返回值

(string)
清理之后的 mime type.

注解

‘sanitize_mime_type’:apply_filters( ‘sanitize_mime_type’, $sanitized_mime_type, $raw_mime_type )

修改记录

Since 3.1.3

源文件

/wp-includes/formatting.php