_wp_get_primary_and_additional_mime_types


_wp_get_primary_and_additional_mime_types ( $file, $attachment_id )

Access:
  • private
Parameters:
  • (string) file Full path to the image file.
  • (int) attachment_id Attachment ID to process.
Returns:
  • (array) An array with two entries, the primary mime type and the list of additional mime types.
Defined at:

Description

Extracts the primary and additional mime output types for an image from the $image_mime_transforms.

Related Functions

_wp_make_additional_mime_types, _wp_filter_image_sizes_additional_mime_type_support, wp_get_additional_image_sizes, _wp_add_additional_image_sizes, _wp_privacy_action_request_types

Top Google Results

User discussions

wpseek mobile