Filter hook 'upload_mimes'

in WP Core File wp-includes/functions.php at line 3616

Description

Filters the list of allowed mime types and file extensions.

Occurrences

Filename Line Number
wp-includes/functions.php 3616

Parameters

Type Name Description
array $t Mime types keyed by the file extension regex corresponding to those types.
int|WP_User|null $user User ID, User object or null if not provided (indicates current user).

PHP Doc

/**
	 * Filters the list of allowed mime types and file extensions.
	 *
	 * @since 2.0.0
	 *
	 * @param array            $t    Mime types keyed by the file extension regex corresponding to those types.
	 * @param int|WP_User|null $user User ID, User object or null if not provided (indicates current user).
	 */