Core Function
View Source on Trac ↗ wp_post_mime_type_where()
wp_post_mime_type_where( mixed $post_mime_types, mixed $table_alias = '' ) Converts MIME types into SQL.
Parameters 2 required
| Name / Type | Description |
|---|---|
| mixed | (string | string[]) $post_mime_types List of mime types or comma separated string of mime types. Required |
| string | $table_alias Optional. Specify a table alias, if needed. Default empty. Required |
Return Value
(string)
The SQL AND clause for mime searching.
Function Information
Since Version
2.5.0
Source File
wp-includes/post.php
Advertisement