upload_mimes

upload_mimes

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7.1

apply_filters('upload_mimes') is found 1 times:

  • /wp-includes/functions.php line 3653
    	 *
    	 * @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).
    	 */
    	return apply_filters( 'upload_mimes', $t, $user );
    }
    
    /**
     * Displays "Are You Sure" message to confirm the action being taken.
     *
     * If the action has the nonce explain message, then it will be displayed
    

See this hook used in plugins: