apply_filters( 'sanitize_mime_type', string $sani_mime_type, string $mime_type )
- Since
- 3.1.3
Filters a mime type following sanitization.
Compatibility
- WordPress
- since 3.1.3
- 6.7.7
- 6.8.8
- 6.9.7
- 7.0.4
- 7.1.0
Present in every tracked release (6.7.7 to 7.1.0).
Parameters
$sani_mime_typestring- The sanitized mime type.
$mime_typestring- The mime type prior to sanitization.
Where this hook fires · 1
wp-includes/formatting.php:5744sanitize_mime_type()
Source code
* * @since 3.1.3 * * @param string $sani_mime_type The sanitized mime type. * @param string $mime_type The mime type prior to sanitization. */ return apply_filters( 'sanitize_mime_type', $sani_mime_type, $mime_type );} /** * Sanitizes space or carriage return separated URLs that are used to send trackbacks. * * @since 3.4.0Changelog
Introduced in 3.1.3. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
About this page
- Parsed data
- Generated from the wordpress-develop 6.9.7 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
- Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.