Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




sanitize_mime_type [ WordPress Function ]

sanitize_mime_type ( $mime_type )
Parameters:
  • (string) $mime_type Mime type
Returns:
  • (string) Sanitized mime type
Defined at:



Sanitize a mime type

Source


<?php
function sanitize_mime_type$mime_type ) {
    
$sani_mime_type preg_replace'/[^-+*.a-zA-Z0-9\/]/'''$mime_type );
    return 
apply_filters'sanitize_mime_type'$sani_mime_type$mime_type );
}
?>

Examples [ wp-snippets.com ]

Google Arama Sonuçlarý

Dahasý ...

Kullanýcý Tartýþmalarý [ wordpress.org ]

- Bulunamadý -

Yeni bir konu yaz ...

0 User Note(s)

Henüz yok. Ýlk sen ol!

Yeni Ekle ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics