sanitize_mime_type хук-фильтр . WP 3.1.3
Filters a mime type following sanitization.
Использование
add_filter( 'sanitize_mime_type', 'filter_function_name_3731', 10, 2 ); function filter_function_name_3731( $sani_mime_type, $mime_type ){ // filter... return $sani_mime_type; }
- $sani_mime_type(строка)
- The sanitized mime type.
- $mime_type(строка)
- The mime type prior to sanitization.
Список изменений
С версии 3.1.3 | Введена. |
Где вызывается хук
sanitize_mime_type
wp-includes/formatting.php 5482
return apply_filters( 'sanitize_mime_type', $sani_mime_type, $mime_type );