WordPress.org

Ready to get started?Download WordPress

Codex

Function Reference/wp post mime type where

Contents

Description

Convert MIME types into SQL.

Usage

<?php wp_post_mime_type_where$post_mime_types$table_alias ); ?>

Parameters

$post_mime_types
(string|array) (required) List of mime types or comma separated string of mime types.
Default: None
$table_alias
(string) (optional) Optional. Specify a table alias, if needed.
Default:

Return Values

(string) 
The SQL AND clause for mime searching.

Change Log

Since: 2.5

Source File

wp_post_mime_type_where() is located in wp-includes/post.php