wp_check_filetype_and_ext

wp_check_filetype_and_ext

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7

apply_filters('wp_check_filetype_and_ext') is found 1 times:

  • /wp-includes/functions.php line 3308
    	 * @param string[]|null $mimes                     Array of mime types keyed by their file extension regex, or null if
    	 *                                                 none were provided.
    	 * @param string|false  $real_mime                 The actual mime type or false if the type cannot be determined.
    	 */
    	return apply_filters( 'wp_check_filetype_and_ext', compact( 'ext', 'type', 'proper_filename' ), $file, $filename, $mimes, $real_mime );
    }
    
    /**
     * Returns the real mime type of an image file.
     *
     * This depends on exif_imagetype() or getimagesize() to determine real mime types.