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.2

apply_filters('wp_check_filetype_and_ext') is found 1 times:

  • /wp-includes/functions.php line 3308
    3304
    3305
    3306
    3307
    3308
    3309
    3310
    3311
    3312
    3313
    3314
         * @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.