Sanitize a mime type.
After sanitize_mime_type()
has done its work, it passes the sanitized MIME type through the sanitize_mime_type filter.
<?php sanitize_mime_type( $mime_type ); ?>
apply_filters( 'sanitize_mime_type', $sanitized_mime_type, $raw_mime_type )
Since: 3.1.3
sanitize_mime_type() is located in /wp-includes/formatting.php
.
sanitize_mime_type()
is in a class of functions that help you sanitize potentially unsafe data which allow you to pass an arbitrary variable and receive the clean version based on data type. Others include: