wppaste
WordPress

wp_generate_attachment_metadata( int $attachment_id, string $file ): array

Since
2.1.0, 6.0.0, 6.7.0
Source
wp-admin/includes/image.php:579
Generates attachment meta data and create image sub-sizes for images.

Compatibility

WordPress
since 6.7.0
PHP
7.4–8.6-dev
  • 6.7.7
  • 6.8.8
  • 6.9.7
  • 7.0.4
  • 7.1.0

Present in every tracked release (6.7.7 to 7.1.0), and compiles on PHP 7.4 through 8.6-dev.

Parameters

$attachment_idint
Attachment ID to process.
$filestring
Filepath of the attached image.

Return value

array
Metadata for attachment.

Performance profile

How much work a call to wp_generate_attachment_metadata() does, and what it touches: the algorithmic scaling, the Zend instruction count per call across PHP versions, the hooks it hands control to, and the core code that calls it. Measured from the compiled opcodes, not a stopwatch, so every number is identical on any machine running the same PHP version, and every function in core is ranked by cost.

Cost class
Heavy

Reads or writes the filesystem via file_exists().

Scaling
Constant

No loop in the body: the same number of instructions runs whatever you pass in.

Instructions
36–170

Executed per call on PHP 8.5, depending on the branch taken. The body compiles to 284.

Plugin surface
3 hooks

Third-party callbacks on 'attachment_thumbnail_args', 'fallback_intermediate_image_sizes', 'wp_generate_attachment_metadata' run inside this call, and their cost is not bounded by anything here.

Called by
13

13 places in core call this, so the cost is paid more often than your own code shows.

What it touches

  • querycontent queryget_post()called directly
  • hookthird-party callbacksapply_filters()called directly
  • filesystemfilesystem accessfile_exists()called directly
  • optionoption read or writeget_option()one call below wp_generate_attachment_metadata()

Further down the call graph this can also reach serialize, cache and transient. Those are the worst case, several calls deep and usually down an error path, not what a normal call pays.

What one call costs · 288 distinct outcomes

One number would be a lie: the work depends on which branch runs. These are every distinct cost wp_generate_attachment_metadata() can have, taken from its control-flow graph on PHP 8.5.

WhenInstructionsCalls it makes
$mime_type === "image/heic" && $mime_type !== "application/pdf" && isset($metadata)36–40get_post(), get_post_mime_type(), wp_create_image_subsizes(), apply_filters()
$mime_type === "image/heic" && $mime_type !== "application/pdf" && !isset($metadata) && !file_exists()40–44get_post(), get_post_mime_type(), wp_create_image_subsizes(), file_exists(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && !wp_attachment_is() && $mime_type !== "application/pdf" && isset($metadata)42–46get_post(), get_post_mime_type(), wp_attachment_is(), wp_attachment_is(), apply_filters()
$mime_type !== "image/heic" && $mime_type && file_is_displayable_image() && $mime_type !== "application/pdf" && isset($metadata)42–46get_post(), get_post_mime_type(), file_is_displayable_image(), wp_create_image_subsizes(), apply_filters()
$mime_type === "image/heic" && $mime_type !== "application/pdf" && !isset($metadata) && file_exists()45–49get_post(), get_post_mime_type(), wp_create_image_subsizes(), file_exists(), wp_filesize(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && !wp_attachment_is() && $mime_type !== "application/pdf" && !isset($metadata) && !file_exists()46–50get_post(), get_post_mime_type(), wp_attachment_is(), wp_attachment_is(), file_exists(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && !wp_attachment_is() && $mime_type !== "application/pdf" && isset($metadata)46–50get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_attachment_is(), apply_filters()
$mime_type !== "image/heic" && $mime_type && file_is_displayable_image() && $mime_type !== "application/pdf" && !isset($metadata) && !file_exists()46–50get_post(), get_post_mime_type(), file_is_displayable_image(), wp_create_image_subsizes(), file_exists(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && wp_attachment_is() && current_theme_supports() && $mime_type !== "application/pdf" && isset($metadata)48–52get_post(), get_post_mime_type(), wp_attachment_is(), wp_read_video_metadata(), current_theme_supports(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && !wp_attachment_is() && $mime_type !== "application/pdf" && !isset($metadata) && !file_exists()50–54get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_attachment_is(), file_exists(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && !wp_attachment_is() && $mime_type !== "application/pdf" && !isset($metadata) && file_exists()51–55get_post(), get_post_mime_type(), wp_attachment_is(), wp_attachment_is(), file_exists(), wp_filesize(), apply_filters()
$mime_type !== "image/heic" && $mime_type && file_is_displayable_image() && $mime_type !== "application/pdf" && !isset($metadata) && file_exists()51–55get_post(), get_post_mime_type(), file_is_displayable_image(), wp_create_image_subsizes(), file_exists(), wp_filesize(), apply_filters()
276 further outcomes, up to 170 instructions
$mime_type !== "image/heic" && !$mime_type && current_theme_supports() && $mime_type !== "application/pdf" && isset($metadata)52–56get_post(), get_post_mime_type(), wp_attachment_is(), wp_attachment_is(), wp_read_audio_metadata(), current_theme_supports(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && wp_attachment_is() && current_theme_supports() && $mime_type !== "application/pdf" && !isset($metadata) && !file_exists()52–56get_post(), get_post_mime_type(), wp_attachment_is(), wp_read_video_metadata(), current_theme_supports(), file_exists(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && wp_attachment_is() && current_theme_supports() && $mime_type !== "application/pdf" && isset($metadata)52–56get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_read_video_metadata(), current_theme_supports(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && wp_attachment_is() && !current_theme_supports() && $mime_type !== "application/pdf" && isset($metadata)53–57get_post(), get_post_mime_type(), wp_attachment_is(), wp_read_video_metadata(), current_theme_supports(), post_type_supports(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && !wp_attachment_is() && $mime_type !== "application/pdf" && !isset($metadata) && file_exists()55–59get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_attachment_is(), file_exists(), wp_filesize(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && current_theme_supports() && $mime_type !== "application/pdf" && !isset($metadata) && !file_exists()56–60get_post(), get_post_mime_type(), wp_attachment_is(), wp_attachment_is(), wp_read_audio_metadata(), current_theme_supports(), file_exists(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && current_theme_supports() && $mime_type !== "application/pdf" && isset($metadata)56–60get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_attachment_is(), wp_read_audio_metadata(), current_theme_supports(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && wp_attachment_is() && current_theme_supports() && $mime_type !== "application/pdf" && !isset($metadata) && !file_exists()56–60get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_read_video_metadata(), current_theme_supports(), file_exists(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && !current_theme_supports() && $mime_type !== "application/pdf" && isset($metadata)57–61get_post(), get_post_mime_type(), wp_attachment_is(), wp_attachment_is(), wp_read_audio_metadata(), current_theme_supports(), post_type_supports(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && wp_attachment_is() && current_theme_supports() && $mime_type !== "application/pdf" && !isset($metadata) && file_exists()57–61get_post(), get_post_mime_type(), wp_attachment_is(), wp_read_video_metadata(), current_theme_supports(), file_exists(), wp_filesize(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && wp_attachment_is() && !current_theme_supports() && $mime_type !== "application/pdf" && !isset($metadata) && !file_exists()57–61get_post(), get_post_mime_type(), wp_attachment_is(), wp_read_video_metadata(), current_theme_supports(), post_type_supports(), file_exists(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && wp_attachment_is() && !current_theme_supports() && $mime_type !== "application/pdf" && isset($metadata)57–61get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_read_video_metadata(), current_theme_supports(), post_type_supports(), apply_filters()
$mime_type === "image/heic" && $mime_type === "application/pdf" && empty($merged_sizes) && isset($metadata)58–68get_post(), get_post_mime_type(), wp_create_image_subsizes(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && current_theme_supports() && $mime_type !== "application/pdf" && !isset($metadata) && !file_exists()60–64get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_attachment_is(), wp_read_audio_metadata(), current_theme_supports(), file_exists(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && current_theme_supports() && $mime_type !== "application/pdf" && !isset($metadata) && file_exists()61–65get_post(), get_post_mime_type(), wp_attachment_is(), wp_attachment_is(), wp_read_audio_metadata(), current_theme_supports(), file_exists(), wp_filesize(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && !current_theme_supports() && $mime_type !== "application/pdf" && !isset($metadata) && !file_exists()61–65get_post(), get_post_mime_type(), wp_attachment_is(), wp_attachment_is(), wp_read_audio_metadata(), current_theme_supports(), post_type_supports(), file_exists(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && !current_theme_supports() && $mime_type !== "application/pdf" && isset($metadata)61–65get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_attachment_is(), wp_read_audio_metadata(), current_theme_supports(), post_type_supports(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && wp_attachment_is() && current_theme_supports() && $mime_type !== "application/pdf" && !isset($metadata) && file_exists()61–65get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_read_video_metadata(), current_theme_supports(), file_exists(), wp_filesize(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && wp_attachment_is() && !current_theme_supports() && $mime_type !== "application/pdf" && !isset($metadata) && !file_exists()61–65get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_read_video_metadata(), current_theme_supports(), post_type_supports(), file_exists(), apply_filters()
$mime_type === "image/heic" && $mime_type === "application/pdf" && empty($merged_sizes) && !isset($metadata) && !file_exists()62–72get_post(), get_post_mime_type(), wp_create_image_subsizes(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), file_exists(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && wp_attachment_is() && !current_theme_supports() && $mime_type !== "application/pdf" && !isset($metadata) && file_exists()62–66get_post(), get_post_mime_type(), wp_attachment_is(), wp_read_video_metadata(), current_theme_supports(), post_type_supports(), file_exists(), wp_filesize(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && !wp_attachment_is() && $mime_type === "application/pdf" && empty($merged_sizes) && isset($metadata)64–74get_post(), get_post_mime_type(), wp_attachment_is(), wp_attachment_is(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), apply_filters()
$mime_type !== "image/heic" && $mime_type && file_is_displayable_image() && $mime_type === "application/pdf" && empty($merged_sizes) && isset($metadata)64–74get_post(), get_post_mime_type(), file_is_displayable_image(), wp_create_image_subsizes(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && current_theme_supports() && $mime_type !== "application/pdf" && !isset($metadata) && file_exists()65–69get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_attachment_is(), wp_read_audio_metadata(), current_theme_supports(), file_exists(), wp_filesize(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && !current_theme_supports() && $mime_type !== "application/pdf" && !isset($metadata) && !file_exists()65–69get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_attachment_is(), wp_read_audio_metadata(), current_theme_supports(), post_type_supports(), file_exists(), apply_filters()
$mime_type === "image/heic" && $mime_type === "application/pdf" && !empty($merged_sizes) && is_wp_error() && isset($metadata)66–76get_post(), get_post_mime_type(), wp_create_image_subsizes(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), wp_get_image_editor(), is_wp_error(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && !current_theme_supports() && $mime_type !== "application/pdf" && !isset($metadata) && file_exists()66–70get_post(), get_post_mime_type(), wp_attachment_is(), wp_attachment_is(), wp_read_audio_metadata(), current_theme_supports(), post_type_supports(), file_exists(), wp_filesize(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && wp_attachment_is() && !current_theme_supports() && $mime_type !== "application/pdf" && !isset($metadata) && file_exists()66–70get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_read_video_metadata(), current_theme_supports(), post_type_supports(), file_exists(), wp_filesize(), apply_filters()
$mime_type === "image/heic" && $mime_type === "application/pdf" && empty($merged_sizes) && !isset($metadata) && file_exists()67–77get_post(), get_post_mime_type(), wp_create_image_subsizes(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), file_exists(), wp_filesize(), apply_filters()
$mime_type === "image/heic" && !empty($value) && !empty($exists) && isset($metadata)68–69get_post(), get_post_mime_type(), wp_create_image_subsizes(), md5(), ids(), reset(), update_post_meta(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && !wp_attachment_is() && $mime_type === "application/pdf" && empty($merged_sizes) && !isset($metadata) && !file_exists()68–78get_post(), get_post_mime_type(), wp_attachment_is(), wp_attachment_is(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), file_exists(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && !wp_attachment_is() && $mime_type === "application/pdf" && empty($merged_sizes) && isset($metadata)68–78get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_attachment_is(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), apply_filters()
$mime_type !== "image/heic" && $mime_type && file_is_displayable_image() && $mime_type === "application/pdf" && empty($merged_sizes) && !isset($metadata) && !file_exists()68–78get_post(), get_post_mime_type(), file_is_displayable_image(), wp_create_image_subsizes(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), file_exists(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && wp_attachment_is() && current_theme_supports() && $mime_type === "application/pdf" && empty($merged_sizes) && isset($metadata)70–80get_post(), get_post_mime_type(), wp_attachment_is(), wp_read_video_metadata(), current_theme_supports(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), apply_filters()
$mime_type === "image/heic" && $mime_type === "application/pdf" && !empty($merged_sizes) && is_wp_error() && !isset($metadata) && !file_exists()70–80get_post(), get_post_mime_type(), wp_create_image_subsizes(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), wp_get_image_editor(), is_wp_error(), file_exists(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && !current_theme_supports() && $mime_type !== "application/pdf" && !isset($metadata) && file_exists()70–74get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_attachment_is(), wp_read_audio_metadata(), current_theme_supports(), post_type_supports(), file_exists(), wp_filesize(), apply_filters()
$mime_type === "image/heic" && !empty($value) && !empty($exists) && !isset($metadata) && !file_exists()72–73get_post(), get_post_mime_type(), wp_create_image_subsizes(), md5(), ids(), reset(), update_post_meta(), file_exists(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && !wp_attachment_is() && $mime_type === "application/pdf" && !empty($merged_sizes) && is_wp_error() && isset($metadata)72–82get_post(), get_post_mime_type(), wp_attachment_is(), wp_attachment_is(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), wp_get_image_editor(), is_wp_error(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && !wp_attachment_is() && $mime_type === "application/pdf" && empty($merged_sizes) && !isset($metadata) && !file_exists()72–82get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_attachment_is(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), file_exists(), apply_filters()
$mime_type !== "image/heic" && $mime_type && file_is_displayable_image() && $mime_type === "application/pdf" && !empty($merged_sizes) && is_wp_error() && isset($metadata)72–82get_post(), get_post_mime_type(), file_is_displayable_image(), wp_create_image_subsizes(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), wp_get_image_editor(), is_wp_error(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && !wp_attachment_is() && $mime_type === "application/pdf" && empty($merged_sizes) && !isset($metadata) && file_exists()73–83get_post(), get_post_mime_type(), wp_attachment_is(), wp_attachment_is(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), file_exists(), wp_filesize(), apply_filters()
$mime_type !== "image/heic" && $mime_type && file_is_displayable_image() && $mime_type === "application/pdf" && empty($merged_sizes) && !isset($metadata) && file_exists()73–83get_post(), get_post_mime_type(), file_is_displayable_image(), wp_create_image_subsizes(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), file_exists(), wp_filesize(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && !wp_attachment_is() && !empty($value) && !empty($exists) && isset($metadata)74–75get_post(), get_post_mime_type(), wp_attachment_is(), wp_attachment_is(), md5(), ids(), reset(), update_post_meta(), apply_filters()
$mime_type !== "image/heic" && $mime_type && file_is_displayable_image() && !empty($value) && !empty($exists) && isset($metadata)74–75get_post(), get_post_mime_type(), file_is_displayable_image(), wp_create_image_subsizes(), md5(), ids(), reset(), update_post_meta(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && current_theme_supports() && $mime_type === "application/pdf" && empty($merged_sizes) && isset($metadata)74–84get_post(), get_post_mime_type(), wp_attachment_is(), wp_attachment_is(), wp_read_audio_metadata(), current_theme_supports(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && wp_attachment_is() && current_theme_supports() && $mime_type === "application/pdf" && empty($merged_sizes) && !isset($metadata) && !file_exists()74–84get_post(), get_post_mime_type(), wp_attachment_is(), wp_read_video_metadata(), current_theme_supports(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), file_exists(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && wp_attachment_is() && current_theme_supports() && $mime_type === "application/pdf" && empty($merged_sizes) && isset($metadata)74–84get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_read_video_metadata(), current_theme_supports(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && wp_attachment_is() && !current_theme_supports() && $mime_type === "application/pdf" && empty($merged_sizes) && isset($metadata)75–85get_post(), get_post_mime_type(), wp_attachment_is(), wp_read_video_metadata(), current_theme_supports(), post_type_supports(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), apply_filters()
$mime_type === "image/heic" && $mime_type === "application/pdf" && !empty($merged_sizes) && is_wp_error() && !isset($metadata) && file_exists()75–85get_post(), get_post_mime_type(), wp_create_image_subsizes(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), wp_get_image_editor(), is_wp_error(), file_exists(), wp_filesize(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && !wp_attachment_is() && $mime_type === "application/pdf" && !empty($merged_sizes) && is_wp_error() && !isset($metadata) && !file_exists()76–86get_post(), get_post_mime_type(), wp_attachment_is(), wp_attachment_is(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), wp_get_image_editor(), is_wp_error(), file_exists(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && !wp_attachment_is() && $mime_type === "application/pdf" && !empty($merged_sizes) && is_wp_error() && isset($metadata)76–86get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_attachment_is(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), wp_get_image_editor(), is_wp_error(), apply_filters()
$mime_type !== "image/heic" && $mime_type && file_is_displayable_image() && $mime_type === "application/pdf" && !empty($merged_sizes) && is_wp_error() && !isset($metadata) && !file_exists()76–86get_post(), get_post_mime_type(), file_is_displayable_image(), wp_create_image_subsizes(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), wp_get_image_editor(), is_wp_error(), file_exists(), apply_filters()
$mime_type === "image/heic" && !empty($value) && !empty($exists) && !isset($metadata) && file_exists()77–78get_post(), get_post_mime_type(), wp_create_image_subsizes(), md5(), ids(), reset(), update_post_meta(), file_exists(), wp_filesize(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && !wp_attachment_is() && $mime_type === "application/pdf" && empty($merged_sizes) && !isset($metadata) && file_exists()77–87get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_attachment_is(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), file_exists(), wp_filesize(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && !wp_attachment_is() && !empty($value) && !empty($exists) && !isset($metadata) && !file_exists()78–79get_post(), get_post_mime_type(), wp_attachment_is(), wp_attachment_is(), md5(), ids(), reset(), update_post_meta(), file_exists(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && !wp_attachment_is() && !empty($value) && !empty($exists) && isset($metadata)78–79get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_attachment_is(), md5(), ids(), reset(), update_post_meta(), apply_filters()
$mime_type !== "image/heic" && $mime_type && file_is_displayable_image() && !empty($value) && !empty($exists) && !isset($metadata) && !file_exists()78–79get_post(), get_post_mime_type(), file_is_displayable_image(), wp_create_image_subsizes(), md5(), ids(), reset(), update_post_meta(), file_exists(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && current_theme_supports() && $mime_type === "application/pdf" && empty($merged_sizes) && !isset($metadata) && !file_exists()78–88get_post(), get_post_mime_type(), wp_attachment_is(), wp_attachment_is(), wp_read_audio_metadata(), current_theme_supports(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), file_exists(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && wp_attachment_is() && current_theme_supports() && $mime_type === "application/pdf" && !empty($merged_sizes) && is_wp_error() && isset($metadata)78–88get_post(), get_post_mime_type(), wp_attachment_is(), wp_read_video_metadata(), current_theme_supports(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), wp_get_image_editor(), is_wp_error(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && current_theme_supports() && $mime_type === "application/pdf" && empty($merged_sizes) && isset($metadata)78–88get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_attachment_is(), wp_read_audio_metadata(), current_theme_supports(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && wp_attachment_is() && current_theme_supports() && $mime_type === "application/pdf" && empty($merged_sizes) && !isset($metadata) && !file_exists()78–88get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_read_video_metadata(), current_theme_supports(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), file_exists(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && !current_theme_supports() && $mime_type === "application/pdf" && empty($merged_sizes) && isset($metadata)79–89get_post(), get_post_mime_type(), wp_attachment_is(), wp_attachment_is(), wp_read_audio_metadata(), current_theme_supports(), post_type_supports(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && wp_attachment_is() && current_theme_supports() && $mime_type === "application/pdf" && empty($merged_sizes) && !isset($metadata) && file_exists()79–89get_post(), get_post_mime_type(), wp_attachment_is(), wp_read_video_metadata(), current_theme_supports(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), file_exists(), wp_filesize(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && wp_attachment_is() && !current_theme_supports() && $mime_type === "application/pdf" && empty($merged_sizes) && !isset($metadata) && !file_exists()79–89get_post(), get_post_mime_type(), wp_attachment_is(), wp_read_video_metadata(), current_theme_supports(), post_type_supports(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), file_exists(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && wp_attachment_is() && !current_theme_supports() && $mime_type === "application/pdf" && empty($merged_sizes) && isset($metadata)79–89get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_read_video_metadata(), current_theme_supports(), post_type_supports(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && wp_attachment_is() && current_theme_supports() && !empty($value) && !empty($exists) && isset($metadata)80–81get_post(), get_post_mime_type(), wp_attachment_is(), wp_read_video_metadata(), current_theme_supports(), md5(), ids(), reset(), update_post_meta(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && !wp_attachment_is() && $mime_type === "application/pdf" && !empty($merged_sizes) && is_wp_error() && !isset($metadata) && !file_exists()80–90get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_attachment_is(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), wp_get_image_editor(), is_wp_error(), file_exists(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && !wp_attachment_is() && $mime_type === "application/pdf" && !empty($merged_sizes) && is_wp_error() && !isset($metadata) && file_exists()81–91get_post(), get_post_mime_type(), wp_attachment_is(), wp_attachment_is(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), wp_get_image_editor(), is_wp_error(), file_exists(), wp_filesize(), apply_filters()
$mime_type !== "image/heic" && $mime_type && file_is_displayable_image() && $mime_type === "application/pdf" && !empty($merged_sizes) && is_wp_error() && !isset($metadata) && file_exists()81–91get_post(), get_post_mime_type(), file_is_displayable_image(), wp_create_image_subsizes(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), wp_get_image_editor(), is_wp_error(), file_exists(), wp_filesize(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && !wp_attachment_is() && !empty($value) && !empty($exists) && !isset($metadata) && !file_exists()82–83get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_attachment_is(), md5(), ids(), reset(), update_post_meta(), file_exists(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && current_theme_supports() && $mime_type === "application/pdf" && !empty($merged_sizes) && is_wp_error() && isset($metadata)82–92get_post(), get_post_mime_type(), wp_attachment_is(), wp_attachment_is(), wp_read_audio_metadata(), current_theme_supports(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), wp_get_image_editor(), is_wp_error(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && wp_attachment_is() && current_theme_supports() && $mime_type === "application/pdf" && !empty($merged_sizes) && is_wp_error() && !isset($metadata) && !file_exists()82–92get_post(), get_post_mime_type(), wp_attachment_is(), wp_read_video_metadata(), current_theme_supports(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), wp_get_image_editor(), is_wp_error(), file_exists(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && current_theme_supports() && $mime_type === "application/pdf" && empty($merged_sizes) && !isset($metadata) && !file_exists()82–92get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_attachment_is(), wp_read_audio_metadata(), current_theme_supports(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), file_exists(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && wp_attachment_is() && current_theme_supports() && $mime_type === "application/pdf" && !empty($merged_sizes) && is_wp_error() && isset($metadata)82–92get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_read_video_metadata(), current_theme_supports(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), wp_get_image_editor(), is_wp_error(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && !wp_attachment_is() && !empty($value) && !empty($exists) && !isset($metadata) && file_exists()83–84get_post(), get_post_mime_type(), wp_attachment_is(), wp_attachment_is(), md5(), ids(), reset(), update_post_meta(), file_exists(), wp_filesize(), apply_filters()
$mime_type !== "image/heic" && $mime_type && file_is_displayable_image() && !empty($value) && !empty($exists) && !isset($metadata) && file_exists()83–84get_post(), get_post_mime_type(), file_is_displayable_image(), wp_create_image_subsizes(), md5(), ids(), reset(), update_post_meta(), file_exists(), wp_filesize(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && current_theme_supports() && $mime_type === "application/pdf" && empty($merged_sizes) && !isset($metadata) && file_exists()83–93get_post(), get_post_mime_type(), wp_attachment_is(), wp_attachment_is(), wp_read_audio_metadata(), current_theme_supports(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), file_exists(), wp_filesize(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && !current_theme_supports() && $mime_type === "application/pdf" && empty($merged_sizes) && !isset($metadata) && !file_exists()83–93get_post(), get_post_mime_type(), wp_attachment_is(), wp_attachment_is(), wp_read_audio_metadata(), current_theme_supports(), post_type_supports(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), file_exists(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && wp_attachment_is() && !current_theme_supports() && $mime_type === "application/pdf" && !empty($merged_sizes) && is_wp_error() && isset($metadata)83–93get_post(), get_post_mime_type(), wp_attachment_is(), wp_read_video_metadata(), current_theme_supports(), post_type_supports(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), wp_get_image_editor(), is_wp_error(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && !current_theme_supports() && $mime_type === "application/pdf" && empty($merged_sizes) && isset($metadata)83–93get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_attachment_is(), wp_read_audio_metadata(), current_theme_supports(), post_type_supports(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && wp_attachment_is() && current_theme_supports() && $mime_type === "application/pdf" && empty($merged_sizes) && !isset($metadata) && file_exists()83–93get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_read_video_metadata(), current_theme_supports(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), file_exists(), wp_filesize(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && wp_attachment_is() && !current_theme_supports() && $mime_type === "application/pdf" && empty($merged_sizes) && !isset($metadata) && !file_exists()83–93get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_read_video_metadata(), current_theme_supports(), post_type_supports(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), file_exists(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && current_theme_supports() && !empty($value) && !empty($exists) && isset($metadata)84–85get_post(), get_post_mime_type(), wp_attachment_is(), wp_attachment_is(), wp_read_audio_metadata(), current_theme_supports(), md5(), ids(), reset(), update_post_meta(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && wp_attachment_is() && current_theme_supports() && !empty($value) && !empty($exists) && !isset($metadata) && !file_exists()84–85get_post(), get_post_mime_type(), wp_attachment_is(), wp_read_video_metadata(), current_theme_supports(), md5(), ids(), reset(), update_post_meta(), file_exists(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && wp_attachment_is() && current_theme_supports() && !empty($value) && !empty($exists) && isset($metadata)84–85get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_read_video_metadata(), current_theme_supports(), md5(), ids(), reset(), update_post_meta(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && wp_attachment_is() && !current_theme_supports() && $mime_type === "application/pdf" && empty($merged_sizes) && !isset($metadata) && file_exists()84–94get_post(), get_post_mime_type(), wp_attachment_is(), wp_read_video_metadata(), current_theme_supports(), post_type_supports(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), file_exists(), wp_filesize(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && wp_attachment_is() && !current_theme_supports() && !empty($value) && !empty($exists) && isset($metadata)85–86get_post(), get_post_mime_type(), wp_attachment_is(), wp_read_video_metadata(), current_theme_supports(), post_type_supports(), md5(), ids(), reset(), update_post_meta(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && !wp_attachment_is() && $mime_type === "application/pdf" && !empty($merged_sizes) && is_wp_error() && !isset($metadata) && file_exists()85–95get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_attachment_is(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), wp_get_image_editor(), is_wp_error(), file_exists(), wp_filesize(), apply_filters()
$mime_type === "image/heic" && !empty($value) && empty($exists) && isset($metadata)86–94get_post(), get_post_mime_type(), wp_create_image_subsizes(), md5(), ids(), reset(), wp_basename(), wp_upload_bits(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && current_theme_supports() && $mime_type === "application/pdf" && !empty($merged_sizes) && is_wp_error() && !isset($metadata) && !file_exists()86–96get_post(), get_post_mime_type(), wp_attachment_is(), wp_attachment_is(), wp_read_audio_metadata(), current_theme_supports(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), wp_get_image_editor(), is_wp_error(), file_exists(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && current_theme_supports() && $mime_type === "application/pdf" && !empty($merged_sizes) && is_wp_error() && isset($metadata)86–96get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_attachment_is(), wp_read_audio_metadata(), current_theme_supports(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), wp_get_image_editor(), is_wp_error(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && wp_attachment_is() && current_theme_supports() && $mime_type === "application/pdf" && !empty($merged_sizes) && is_wp_error() && !isset($metadata) && !file_exists()86–96get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_read_video_metadata(), current_theme_supports(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), wp_get_image_editor(), is_wp_error(), file_exists(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && !wp_attachment_is() && !empty($value) && !empty($exists) && !isset($metadata) && file_exists()87–88get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_attachment_is(), md5(), ids(), reset(), update_post_meta(), file_exists(), wp_filesize(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && !current_theme_supports() && $mime_type === "application/pdf" && !empty($merged_sizes) && is_wp_error() && isset($metadata)87–97get_post(), get_post_mime_type(), wp_attachment_is(), wp_attachment_is(), wp_read_audio_metadata(), current_theme_supports(), post_type_supports(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), wp_get_image_editor(), is_wp_error(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && wp_attachment_is() && current_theme_supports() && $mime_type === "application/pdf" && !empty($merged_sizes) && is_wp_error() && !isset($metadata) && file_exists()87–97get_post(), get_post_mime_type(), wp_attachment_is(), wp_read_video_metadata(), current_theme_supports(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), wp_get_image_editor(), is_wp_error(), file_exists(), wp_filesize(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && wp_attachment_is() && !current_theme_supports() && $mime_type === "application/pdf" && !empty($merged_sizes) && is_wp_error() && !isset($metadata) && !file_exists()87–97get_post(), get_post_mime_type(), wp_attachment_is(), wp_read_video_metadata(), current_theme_supports(), post_type_supports(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), wp_get_image_editor(), is_wp_error(), file_exists(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && current_theme_supports() && $mime_type === "application/pdf" && empty($merged_sizes) && !isset($metadata) && file_exists()87–97get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_attachment_is(), wp_read_audio_metadata(), current_theme_supports(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), file_exists(), wp_filesize(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && !current_theme_supports() && $mime_type === "application/pdf" && empty($merged_sizes) && !isset($metadata) && !file_exists()87–97get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_attachment_is(), wp_read_audio_metadata(), current_theme_supports(), post_type_supports(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), file_exists(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && wp_attachment_is() && !current_theme_supports() && $mime_type === "application/pdf" && !empty($merged_sizes) && is_wp_error() && isset($metadata)87–97get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_read_video_metadata(), current_theme_supports(), post_type_supports(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), wp_get_image_editor(), is_wp_error(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && current_theme_supports() && !empty($value) && !empty($exists) && !isset($metadata) && !file_exists()88–89get_post(), get_post_mime_type(), wp_attachment_is(), wp_attachment_is(), wp_read_audio_metadata(), current_theme_supports(), md5(), ids(), reset(), update_post_meta(), file_exists(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && current_theme_supports() && !empty($value) && !empty($exists) && isset($metadata)88–89get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_attachment_is(), wp_read_audio_metadata(), current_theme_supports(), md5(), ids(), reset(), update_post_meta(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && wp_attachment_is() && current_theme_supports() && !empty($value) && !empty($exists) && !isset($metadata) && !file_exists()88–89get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_read_video_metadata(), current_theme_supports(), md5(), ids(), reset(), update_post_meta(), file_exists(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && !current_theme_supports() && $mime_type === "application/pdf" && empty($merged_sizes) && !isset($metadata) && file_exists()88–98get_post(), get_post_mime_type(), wp_attachment_is(), wp_attachment_is(), wp_read_audio_metadata(), current_theme_supports(), post_type_supports(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), file_exists(), wp_filesize(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && wp_attachment_is() && !current_theme_supports() && $mime_type === "application/pdf" && empty($merged_sizes) && !isset($metadata) && file_exists()88–98get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_read_video_metadata(), current_theme_supports(), post_type_supports(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), file_exists(), wp_filesize(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && !current_theme_supports() && !empty($value) && !empty($exists) && isset($metadata)89–90get_post(), get_post_mime_type(), wp_attachment_is(), wp_attachment_is(), wp_read_audio_metadata(), current_theme_supports(), post_type_supports(), md5(), ids(), reset(), update_post_meta(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && wp_attachment_is() && current_theme_supports() && !empty($value) && !empty($exists) && !isset($metadata) && file_exists()89–90get_post(), get_post_mime_type(), wp_attachment_is(), wp_read_video_metadata(), current_theme_supports(), md5(), ids(), reset(), update_post_meta(), file_exists(), wp_filesize(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && wp_attachment_is() && !current_theme_supports() && !empty($value) && !empty($exists) && !isset($metadata) && !file_exists()89–90get_post(), get_post_mime_type(), wp_attachment_is(), wp_read_video_metadata(), current_theme_supports(), post_type_supports(), md5(), ids(), reset(), update_post_meta(), file_exists(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && wp_attachment_is() && !current_theme_supports() && !empty($value) && !empty($exists) && isset($metadata)89–90get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_read_video_metadata(), current_theme_supports(), post_type_supports(), md5(), ids(), reset(), update_post_meta(), apply_filters()
$mime_type === "image/heic" && !empty($value) && empty($exists) && !isset($metadata) && !file_exists()90–98get_post(), get_post_mime_type(), wp_create_image_subsizes(), md5(), ids(), reset(), wp_basename(), wp_upload_bits(), file_exists(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && current_theme_supports() && $mime_type === "application/pdf" && !empty($merged_sizes) && is_wp_error() && !isset($metadata) && !file_exists()90–100get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_attachment_is(), wp_read_audio_metadata(), current_theme_supports(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), wp_get_image_editor(), is_wp_error(), file_exists(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && current_theme_supports() && $mime_type === "application/pdf" && !empty($merged_sizes) && is_wp_error() && !isset($metadata) && file_exists()91–101get_post(), get_post_mime_type(), wp_attachment_is(), wp_attachment_is(), wp_read_audio_metadata(), current_theme_supports(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), wp_get_image_editor(), is_wp_error(), file_exists(), wp_filesize(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && !current_theme_supports() && $mime_type === "application/pdf" && !empty($merged_sizes) && is_wp_error() && !isset($metadata) && !file_exists()91–101get_post(), get_post_mime_type(), wp_attachment_is(), wp_attachment_is(), wp_read_audio_metadata(), current_theme_supports(), post_type_supports(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), wp_get_image_editor(), is_wp_error(), file_exists(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && !current_theme_supports() && $mime_type === "application/pdf" && !empty($merged_sizes) && is_wp_error() && isset($metadata)91–101get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_attachment_is(), wp_read_audio_metadata(), current_theme_supports(), post_type_supports(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), wp_get_image_editor(), is_wp_error(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && wp_attachment_is() && current_theme_supports() && $mime_type === "application/pdf" && !empty($merged_sizes) && is_wp_error() && !isset($metadata) && file_exists()91–101get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_read_video_metadata(), current_theme_supports(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), wp_get_image_editor(), is_wp_error(), file_exists(), wp_filesize(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && wp_attachment_is() && !current_theme_supports() && $mime_type === "application/pdf" && !empty($merged_sizes) && is_wp_error() && !isset($metadata) && !file_exists()91–101get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_read_video_metadata(), current_theme_supports(), post_type_supports(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), wp_get_image_editor(), is_wp_error(), file_exists(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && !wp_attachment_is() && !empty($value) && empty($exists) && isset($metadata)92–100get_post(), get_post_mime_type(), wp_attachment_is(), wp_attachment_is(), md5(), ids(), reset(), wp_basename(), wp_upload_bits(), apply_filters()
$mime_type !== "image/heic" && $mime_type && file_is_displayable_image() && !empty($value) && empty($exists) && isset($metadata)92–100get_post(), get_post_mime_type(), file_is_displayable_image(), wp_create_image_subsizes(), md5(), ids(), reset(), wp_basename(), wp_upload_bits(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && current_theme_supports() && !empty($value) && !empty($exists) && !isset($metadata) && !file_exists()92–93get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_attachment_is(), wp_read_audio_metadata(), current_theme_supports(), md5(), ids(), reset(), update_post_meta(), file_exists(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && wp_attachment_is() && !current_theme_supports() && $mime_type === "application/pdf" && !empty($merged_sizes) && is_wp_error() && !isset($metadata) && file_exists()92–102get_post(), get_post_mime_type(), wp_attachment_is(), wp_read_video_metadata(), current_theme_supports(), post_type_supports(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), wp_get_image_editor(), is_wp_error(), file_exists(), wp_filesize(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && !current_theme_supports() && $mime_type === "application/pdf" && empty($merged_sizes) && !isset($metadata) && file_exists()92–102get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_attachment_is(), wp_read_audio_metadata(), current_theme_supports(), post_type_supports(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), file_exists(), wp_filesize(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && current_theme_supports() && !empty($value) && !empty($exists) && !isset($metadata) && file_exists()93–94get_post(), get_post_mime_type(), wp_attachment_is(), wp_attachment_is(), wp_read_audio_metadata(), current_theme_supports(), md5(), ids(), reset(), update_post_meta(), file_exists(), wp_filesize(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && !current_theme_supports() && !empty($value) && !empty($exists) && !isset($metadata) && !file_exists()93–94get_post(), get_post_mime_type(), wp_attachment_is(), wp_attachment_is(), wp_read_audio_metadata(), current_theme_supports(), post_type_supports(), md5(), ids(), reset(), update_post_meta(), file_exists(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && !current_theme_supports() && !empty($value) && !empty($exists) && isset($metadata)93–94get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_attachment_is(), wp_read_audio_metadata(), current_theme_supports(), post_type_supports(), md5(), ids(), reset(), update_post_meta(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && wp_attachment_is() && current_theme_supports() && !empty($value) && !empty($exists) && !isset($metadata) && file_exists()93–94get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_read_video_metadata(), current_theme_supports(), md5(), ids(), reset(), update_post_meta(), file_exists(), wp_filesize(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && wp_attachment_is() && !current_theme_supports() && !empty($value) && !empty($exists) && !isset($metadata) && !file_exists()93–94get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_read_video_metadata(), current_theme_supports(), post_type_supports(), md5(), ids(), reset(), update_post_meta(), file_exists(), apply_filters()
$mime_type === "image/heic" && $mime_type === "application/pdf" && !empty($merged_sizes) && isset($metadata)93–103get_post(), get_post_mime_type(), wp_create_image_subsizes(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), wp_get_image_editor(), is_wp_error(), pathinfo(), wp_basename(), wp_unique_filename(), ->save(), is_wp_error(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && wp_attachment_is() && !current_theme_supports() && !empty($value) && !empty($exists) && !isset($metadata) && file_exists()94–95get_post(), get_post_mime_type(), wp_attachment_is(), wp_read_video_metadata(), current_theme_supports(), post_type_supports(), md5(), ids(), reset(), update_post_meta(), file_exists(), wp_filesize(), apply_filters()
$mime_type === "image/heic" && !empty($value) && empty($exists) && !isset($metadata) && file_exists()95–103get_post(), get_post_mime_type(), wp_create_image_subsizes(), md5(), ids(), reset(), wp_basename(), wp_upload_bits(), file_exists(), wp_filesize(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && current_theme_supports() && $mime_type === "application/pdf" && !empty($merged_sizes) && is_wp_error() && !isset($metadata) && file_exists()95–105get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_attachment_is(), wp_read_audio_metadata(), current_theme_supports(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), wp_get_image_editor(), is_wp_error(), file_exists(), wp_filesize(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && !current_theme_supports() && $mime_type === "application/pdf" && !empty($merged_sizes) && is_wp_error() && !isset($metadata) && !file_exists()95–105get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_attachment_is(), wp_read_audio_metadata(), current_theme_supports(), post_type_supports(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), wp_get_image_editor(), is_wp_error(), file_exists(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && !wp_attachment_is() && !empty($value) && empty($exists) && !isset($metadata) && !file_exists()96–104get_post(), get_post_mime_type(), wp_attachment_is(), wp_attachment_is(), md5(), ids(), reset(), wp_basename(), wp_upload_bits(), file_exists(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && !wp_attachment_is() && !empty($value) && empty($exists) && isset($metadata)96–104get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_attachment_is(), md5(), ids(), reset(), wp_basename(), wp_upload_bits(), apply_filters()
$mime_type !== "image/heic" && $mime_type && file_is_displayable_image() && !empty($value) && empty($exists) && !isset($metadata) && !file_exists()96–104get_post(), get_post_mime_type(), file_is_displayable_image(), wp_create_image_subsizes(), md5(), ids(), reset(), wp_basename(), wp_upload_bits(), file_exists(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && !current_theme_supports() && $mime_type === "application/pdf" && !empty($merged_sizes) && is_wp_error() && !isset($metadata) && file_exists()96–106get_post(), get_post_mime_type(), wp_attachment_is(), wp_attachment_is(), wp_read_audio_metadata(), current_theme_supports(), post_type_supports(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), wp_get_image_editor(), is_wp_error(), file_exists(), wp_filesize(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && wp_attachment_is() && !current_theme_supports() && $mime_type === "application/pdf" && !empty($merged_sizes) && is_wp_error() && !isset($metadata) && file_exists()96–106get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_read_video_metadata(), current_theme_supports(), post_type_supports(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), wp_get_image_editor(), is_wp_error(), file_exists(), wp_filesize(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && current_theme_supports() && !empty($value) && !empty($exists) && !isset($metadata) && file_exists()97–98get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_attachment_is(), wp_read_audio_metadata(), current_theme_supports(), md5(), ids(), reset(), update_post_meta(), file_exists(), wp_filesize(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && !current_theme_supports() && !empty($value) && !empty($exists) && !isset($metadata) && !file_exists()97–98get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_attachment_is(), wp_read_audio_metadata(), current_theme_supports(), post_type_supports(), md5(), ids(), reset(), update_post_meta(), file_exists(), apply_filters()
$mime_type === "image/heic" && $mime_type === "application/pdf" && !empty($merged_sizes) && !isset($metadata) && !file_exists()97–107get_post(), get_post_mime_type(), wp_create_image_subsizes(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), wp_get_image_editor(), is_wp_error(), pathinfo(), wp_basename(), wp_unique_filename(), ->save(), is_wp_error(), file_exists(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && wp_attachment_is() && current_theme_supports() && !empty($value) && empty($exists) && isset($metadata)98–106get_post(), get_post_mime_type(), wp_attachment_is(), wp_read_video_metadata(), current_theme_supports(), md5(), ids(), reset(), wp_basename(), wp_upload_bits(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && !current_theme_supports() && !empty($value) && !empty($exists) && !isset($metadata) && file_exists()98–99get_post(), get_post_mime_type(), wp_attachment_is(), wp_attachment_is(), wp_read_audio_metadata(), current_theme_supports(), post_type_supports(), md5(), ids(), reset(), update_post_meta(), file_exists(), wp_filesize(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && wp_attachment_is() && !current_theme_supports() && !empty($value) && !empty($exists) && !isset($metadata) && file_exists()98–99get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_read_video_metadata(), current_theme_supports(), post_type_supports(), md5(), ids(), reset(), update_post_meta(), file_exists(), wp_filesize(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && !wp_attachment_is() && $mime_type === "application/pdf" && !empty($merged_sizes) && isset($metadata)99–109get_post(), get_post_mime_type(), wp_attachment_is(), wp_attachment_is(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), wp_get_image_editor(), is_wp_error(), pathinfo(), wp_basename(), wp_unique_filename(), ->save(), is_wp_error(), apply_filters()
$mime_type !== "image/heic" && $mime_type && file_is_displayable_image() && $mime_type === "application/pdf" && !empty($merged_sizes) && isset($metadata)99–109get_post(), get_post_mime_type(), file_is_displayable_image(), wp_create_image_subsizes(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), wp_get_image_editor(), is_wp_error(), pathinfo(), wp_basename(), wp_unique_filename(), ->save(), is_wp_error(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && !wp_attachment_is() && !empty($value) && empty($exists) && !isset($metadata) && !file_exists()100–108get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_attachment_is(), md5(), ids(), reset(), wp_basename(), wp_upload_bits(), file_exists(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && !current_theme_supports() && $mime_type === "application/pdf" && !empty($merged_sizes) && is_wp_error() && !isset($metadata) && file_exists()100–110get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_attachment_is(), wp_read_audio_metadata(), current_theme_supports(), post_type_supports(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), wp_get_image_editor(), is_wp_error(), file_exists(), wp_filesize(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && !wp_attachment_is() && !empty($value) && empty($exists) && !isset($metadata) && file_exists()101–109get_post(), get_post_mime_type(), wp_attachment_is(), wp_attachment_is(), md5(), ids(), reset(), wp_basename(), wp_upload_bits(), file_exists(), wp_filesize(), apply_filters()
$mime_type !== "image/heic" && $mime_type && file_is_displayable_image() && !empty($value) && empty($exists) && !isset($metadata) && file_exists()101–109get_post(), get_post_mime_type(), file_is_displayable_image(), wp_create_image_subsizes(), md5(), ids(), reset(), wp_basename(), wp_upload_bits(), file_exists(), wp_filesize(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && current_theme_supports() && !empty($value) && empty($exists) && isset($metadata)102–110get_post(), get_post_mime_type(), wp_attachment_is(), wp_attachment_is(), wp_read_audio_metadata(), current_theme_supports(), md5(), ids(), reset(), wp_basename(), wp_upload_bits(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && wp_attachment_is() && current_theme_supports() && !empty($value) && empty($exists) && !isset($metadata) && !file_exists()102–110get_post(), get_post_mime_type(), wp_attachment_is(), wp_read_video_metadata(), current_theme_supports(), md5(), ids(), reset(), wp_basename(), wp_upload_bits(), file_exists(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && wp_attachment_is() && current_theme_supports() && !empty($value) && empty($exists) && isset($metadata)102–110get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_read_video_metadata(), current_theme_supports(), md5(), ids(), reset(), wp_basename(), wp_upload_bits(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && !current_theme_supports() && !empty($value) && !empty($exists) && !isset($metadata) && file_exists()102–103get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_attachment_is(), wp_read_audio_metadata(), current_theme_supports(), post_type_supports(), md5(), ids(), reset(), update_post_meta(), file_exists(), wp_filesize(), apply_filters()
$mime_type === "image/heic" && $mime_type === "application/pdf" && !empty($merged_sizes) && !isset($metadata) && file_exists()102–112get_post(), get_post_mime_type(), wp_create_image_subsizes(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), wp_get_image_editor(), is_wp_error(), pathinfo(), wp_basename(), wp_unique_filename(), ->save(), is_wp_error(), file_exists(), wp_filesize(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && wp_attachment_is() && !current_theme_supports() && !empty($value) && empty($exists) && isset($metadata)103–111get_post(), get_post_mime_type(), wp_attachment_is(), wp_read_video_metadata(), current_theme_supports(), post_type_supports(), md5(), ids(), reset(), wp_basename(), wp_upload_bits(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && !wp_attachment_is() && $mime_type === "application/pdf" && !empty($merged_sizes) && !isset($metadata) && !file_exists()103–113get_post(), get_post_mime_type(), wp_attachment_is(), wp_attachment_is(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), wp_get_image_editor(), is_wp_error(), pathinfo(), wp_basename(), wp_unique_filename(), ->save(), is_wp_error(), file_exists(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && !wp_attachment_is() && $mime_type === "application/pdf" && !empty($merged_sizes) && isset($metadata)103–113get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_attachment_is(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), wp_get_image_editor(), is_wp_error(), pathinfo(), wp_basename(), wp_unique_filename(), ->save(), is_wp_error(), apply_filters()
$mime_type !== "image/heic" && $mime_type && file_is_displayable_image() && $mime_type === "application/pdf" && !empty($merged_sizes) && !isset($metadata) && !file_exists()103–113get_post(), get_post_mime_type(), file_is_displayable_image(), wp_create_image_subsizes(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), wp_get_image_editor(), is_wp_error(), pathinfo(), wp_basename(), wp_unique_filename(), ->save(), is_wp_error(), file_exists(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && !wp_attachment_is() && !empty($value) && empty($exists) && !isset($metadata) && file_exists()105–113get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_attachment_is(), md5(), ids(), reset(), wp_basename(), wp_upload_bits(), file_exists(), wp_filesize(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && wp_attachment_is() && current_theme_supports() && $mime_type === "application/pdf" && !empty($merged_sizes) && isset($metadata)105–115get_post(), get_post_mime_type(), wp_attachment_is(), wp_read_video_metadata(), current_theme_supports(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), wp_get_image_editor(), is_wp_error(), pathinfo(), wp_basename(), wp_unique_filename(), ->save(), is_wp_error(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && current_theme_supports() && !empty($value) && empty($exists) && !isset($metadata) && !file_exists()106–114get_post(), get_post_mime_type(), wp_attachment_is(), wp_attachment_is(), wp_read_audio_metadata(), current_theme_supports(), md5(), ids(), reset(), wp_basename(), wp_upload_bits(), file_exists(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && current_theme_supports() && !empty($value) && empty($exists) && isset($metadata)106–114get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_attachment_is(), wp_read_audio_metadata(), current_theme_supports(), md5(), ids(), reset(), wp_basename(), wp_upload_bits(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && wp_attachment_is() && current_theme_supports() && !empty($value) && empty($exists) && !isset($metadata) && !file_exists()106–114get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_read_video_metadata(), current_theme_supports(), md5(), ids(), reset(), wp_basename(), wp_upload_bits(), file_exists(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && !current_theme_supports() && !empty($value) && empty($exists) && isset($metadata)107–115get_post(), get_post_mime_type(), wp_attachment_is(), wp_attachment_is(), wp_read_audio_metadata(), current_theme_supports(), post_type_supports(), md5(), ids(), reset(), wp_basename(), wp_upload_bits(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && wp_attachment_is() && current_theme_supports() && !empty($value) && empty($exists) && !isset($metadata) && file_exists()107–115get_post(), get_post_mime_type(), wp_attachment_is(), wp_read_video_metadata(), current_theme_supports(), md5(), ids(), reset(), wp_basename(), wp_upload_bits(), file_exists(), wp_filesize(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && wp_attachment_is() && !current_theme_supports() && !empty($value) && empty($exists) && !isset($metadata) && !file_exists()107–115get_post(), get_post_mime_type(), wp_attachment_is(), wp_read_video_metadata(), current_theme_supports(), post_type_supports(), md5(), ids(), reset(), wp_basename(), wp_upload_bits(), file_exists(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && wp_attachment_is() && !current_theme_supports() && !empty($value) && empty($exists) && isset($metadata)107–115get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_read_video_metadata(), current_theme_supports(), post_type_supports(), md5(), ids(), reset(), wp_basename(), wp_upload_bits(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && !wp_attachment_is() && $mime_type === "application/pdf" && !empty($merged_sizes) && !isset($metadata) && !file_exists()107–117get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_attachment_is(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), wp_get_image_editor(), is_wp_error(), pathinfo(), wp_basename(), wp_unique_filename(), ->save(), is_wp_error(), file_exists(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && !wp_attachment_is() && $mime_type === "application/pdf" && !empty($merged_sizes) && !isset($metadata) && file_exists()108–118get_post(), get_post_mime_type(), wp_attachment_is(), wp_attachment_is(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), wp_get_image_editor(), is_wp_error(), pathinfo(), wp_basename(), wp_unique_filename(), ->save(), is_wp_error(), file_exists(), wp_filesize(), apply_filters()
$mime_type !== "image/heic" && $mime_type && file_is_displayable_image() && $mime_type === "application/pdf" && !empty($merged_sizes) && !isset($metadata) && file_exists()108–118get_post(), get_post_mime_type(), file_is_displayable_image(), wp_create_image_subsizes(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), wp_get_image_editor(), is_wp_error(), pathinfo(), wp_basename(), wp_unique_filename(), ->save(), is_wp_error(), file_exists(), wp_filesize(), apply_filters()
$mime_type === "image/heic" && $mime_type === "application/pdf" && !empty($merged_sizes) && !is_wp_error() && isset($metadata)109–119get_post(), get_post_mime_type(), wp_create_image_subsizes(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), wp_get_image_editor(), is_wp_error(), pathinfo(), wp_basename(), wp_unique_filename(), ->save(), is_wp_error(), wp_update_attachment_metadata(), _wp_make_subsizes(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && current_theme_supports() && $mime_type === "application/pdf" && !empty($merged_sizes) && isset($metadata)109–119get_post(), get_post_mime_type(), wp_attachment_is(), wp_attachment_is(), wp_read_audio_metadata(), current_theme_supports(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), wp_get_image_editor(), is_wp_error(), pathinfo(), wp_basename(), wp_unique_filename(), ->save(), is_wp_error(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && wp_attachment_is() && current_theme_supports() && $mime_type === "application/pdf" && !empty($merged_sizes) && !isset($metadata) && !file_exists()109–119get_post(), get_post_mime_type(), wp_attachment_is(), wp_read_video_metadata(), current_theme_supports(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), wp_get_image_editor(), is_wp_error(), pathinfo(), wp_basename(), wp_unique_filename(), ->save(), is_wp_error(), file_exists(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && wp_attachment_is() && current_theme_supports() && $mime_type === "application/pdf" && !empty($merged_sizes) && isset($metadata)109–119get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_read_video_metadata(), current_theme_supports(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), wp_get_image_editor(), is_wp_error(), pathinfo(), wp_basename(), wp_unique_filename(), ->save(), is_wp_error(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && current_theme_supports() && !empty($value) && empty($exists) && !isset($metadata) && !file_exists()110–118get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_attachment_is(), wp_read_audio_metadata(), current_theme_supports(), md5(), ids(), reset(), wp_basename(), wp_upload_bits(), file_exists(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && wp_attachment_is() && !current_theme_supports() && $mime_type === "application/pdf" && !empty($merged_sizes) && isset($metadata)110–120get_post(), get_post_mime_type(), wp_attachment_is(), wp_read_video_metadata(), current_theme_supports(), post_type_supports(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), wp_get_image_editor(), is_wp_error(), pathinfo(), wp_basename(), wp_unique_filename(), ->save(), is_wp_error(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && current_theme_supports() && !empty($value) && empty($exists) && !isset($metadata) && file_exists()111–119get_post(), get_post_mime_type(), wp_attachment_is(), wp_attachment_is(), wp_read_audio_metadata(), current_theme_supports(), md5(), ids(), reset(), wp_basename(), wp_upload_bits(), file_exists(), wp_filesize(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && !current_theme_supports() && !empty($value) && empty($exists) && !isset($metadata) && !file_exists()111–119get_post(), get_post_mime_type(), wp_attachment_is(), wp_attachment_is(), wp_read_audio_metadata(), current_theme_supports(), post_type_supports(), md5(), ids(), reset(), wp_basename(), wp_upload_bits(), file_exists(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && !current_theme_supports() && !empty($value) && empty($exists) && isset($metadata)111–119get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_attachment_is(), wp_read_audio_metadata(), current_theme_supports(), post_type_supports(), md5(), ids(), reset(), wp_basename(), wp_upload_bits(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && wp_attachment_is() && current_theme_supports() && !empty($value) && empty($exists) && !isset($metadata) && file_exists()111–119get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_read_video_metadata(), current_theme_supports(), md5(), ids(), reset(), wp_basename(), wp_upload_bits(), file_exists(), wp_filesize(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && wp_attachment_is() && !current_theme_supports() && !empty($value) && empty($exists) && !isset($metadata) && !file_exists()111–119get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_read_video_metadata(), current_theme_supports(), post_type_supports(), md5(), ids(), reset(), wp_basename(), wp_upload_bits(), file_exists(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && wp_attachment_is() && !current_theme_supports() && !empty($value) && empty($exists) && !isset($metadata) && file_exists()112–120get_post(), get_post_mime_type(), wp_attachment_is(), wp_read_video_metadata(), current_theme_supports(), post_type_supports(), md5(), ids(), reset(), wp_basename(), wp_upload_bits(), file_exists(), wp_filesize(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && !wp_attachment_is() && $mime_type === "application/pdf" && !empty($merged_sizes) && !isset($metadata) && file_exists()112–122get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_attachment_is(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), wp_get_image_editor(), is_wp_error(), pathinfo(), wp_basename(), wp_unique_filename(), ->save(), is_wp_error(), file_exists(), wp_filesize(), apply_filters()
$mime_type === "image/heic" && $mime_type === "application/pdf" && !empty($merged_sizes) && !is_wp_error() && !isset($metadata) && !file_exists()113–123get_post(), get_post_mime_type(), wp_create_image_subsizes(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), wp_get_image_editor(), is_wp_error(), pathinfo(), wp_basename(), wp_unique_filename(), ->save(), is_wp_error(), wp_update_attachment_metadata(), _wp_make_subsizes(), file_exists(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && current_theme_supports() && $mime_type === "application/pdf" && !empty($merged_sizes) && !isset($metadata) && !file_exists()113–123get_post(), get_post_mime_type(), wp_attachment_is(), wp_attachment_is(), wp_read_audio_metadata(), current_theme_supports(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), wp_get_image_editor(), is_wp_error(), pathinfo(), wp_basename(), wp_unique_filename(), ->save(), is_wp_error(), file_exists(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && current_theme_supports() && $mime_type === "application/pdf" && !empty($merged_sizes) && isset($metadata)113–123get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_attachment_is(), wp_read_audio_metadata(), current_theme_supports(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), wp_get_image_editor(), is_wp_error(), pathinfo(), wp_basename(), wp_unique_filename(), ->save(), is_wp_error(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && wp_attachment_is() && current_theme_supports() && $mime_type === "application/pdf" && !empty($merged_sizes) && !isset($metadata) && !file_exists()113–123get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_read_video_metadata(), current_theme_supports(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), wp_get_image_editor(), is_wp_error(), pathinfo(), wp_basename(), wp_unique_filename(), ->save(), is_wp_error(), file_exists(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && !current_theme_supports() && $mime_type === "application/pdf" && !empty($merged_sizes) && isset($metadata)114–124get_post(), get_post_mime_type(), wp_attachment_is(), wp_attachment_is(), wp_read_audio_metadata(), current_theme_supports(), post_type_supports(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), wp_get_image_editor(), is_wp_error(), pathinfo(), wp_basename(), wp_unique_filename(), ->save(), is_wp_error(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && wp_attachment_is() && current_theme_supports() && $mime_type === "application/pdf" && !empty($merged_sizes) && !isset($metadata) && file_exists()114–124get_post(), get_post_mime_type(), wp_attachment_is(), wp_read_video_metadata(), current_theme_supports(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), wp_get_image_editor(), is_wp_error(), pathinfo(), wp_basename(), wp_unique_filename(), ->save(), is_wp_error(), file_exists(), wp_filesize(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && wp_attachment_is() && !current_theme_supports() && $mime_type === "application/pdf" && !empty($merged_sizes) && !isset($metadata) && !file_exists()114–124get_post(), get_post_mime_type(), wp_attachment_is(), wp_read_video_metadata(), current_theme_supports(), post_type_supports(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), wp_get_image_editor(), is_wp_error(), pathinfo(), wp_basename(), wp_unique_filename(), ->save(), is_wp_error(), file_exists(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && wp_attachment_is() && !current_theme_supports() && $mime_type === "application/pdf" && !empty($merged_sizes) && isset($metadata)114–124get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_read_video_metadata(), current_theme_supports(), post_type_supports(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), wp_get_image_editor(), is_wp_error(), pathinfo(), wp_basename(), wp_unique_filename(), ->save(), is_wp_error(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && current_theme_supports() && !empty($value) && empty($exists) && !isset($metadata) && file_exists()115–123get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_attachment_is(), wp_read_audio_metadata(), current_theme_supports(), md5(), ids(), reset(), wp_basename(), wp_upload_bits(), file_exists(), wp_filesize(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && !current_theme_supports() && !empty($value) && empty($exists) && !isset($metadata) && !file_exists()115–123get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_attachment_is(), wp_read_audio_metadata(), current_theme_supports(), post_type_supports(), md5(), ids(), reset(), wp_basename(), wp_upload_bits(), file_exists(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && !wp_attachment_is() && $mime_type === "application/pdf" && !empty($merged_sizes) && !is_wp_error() && isset($metadata)115–125get_post(), get_post_mime_type(), wp_attachment_is(), wp_attachment_is(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), wp_get_image_editor(), is_wp_error(), pathinfo(), wp_basename(), wp_unique_filename(), ->save(), is_wp_error(), wp_update_attachment_metadata(), _wp_make_subsizes(), apply_filters()
$mime_type !== "image/heic" && $mime_type && file_is_displayable_image() && $mime_type === "application/pdf" && !empty($merged_sizes) && !is_wp_error() && isset($metadata)115–125get_post(), get_post_mime_type(), file_is_displayable_image(), wp_create_image_subsizes(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), wp_get_image_editor(), is_wp_error(), pathinfo(), wp_basename(), wp_unique_filename(), ->save(), is_wp_error(), wp_update_attachment_metadata(), _wp_make_subsizes(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && !current_theme_supports() && !empty($value) && empty($exists) && !isset($metadata) && file_exists()116–124get_post(), get_post_mime_type(), wp_attachment_is(), wp_attachment_is(), wp_read_audio_metadata(), current_theme_supports(), post_type_supports(), md5(), ids(), reset(), wp_basename(), wp_upload_bits(), file_exists(), wp_filesize(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && wp_attachment_is() && !current_theme_supports() && !empty($value) && empty($exists) && !isset($metadata) && file_exists()116–124get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_read_video_metadata(), current_theme_supports(), post_type_supports(), md5(), ids(), reset(), wp_basename(), wp_upload_bits(), file_exists(), wp_filesize(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && current_theme_supports() && $mime_type === "application/pdf" && !empty($merged_sizes) && !isset($metadata) && !file_exists()117–127get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_attachment_is(), wp_read_audio_metadata(), current_theme_supports(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), wp_get_image_editor(), is_wp_error(), pathinfo(), wp_basename(), wp_unique_filename(), ->save(), is_wp_error(), file_exists(), apply_filters()
$mime_type === "image/heic" && $mime_type === "application/pdf" && !empty($merged_sizes) && !is_wp_error() && !isset($metadata) && file_exists()118–128get_post(), get_post_mime_type(), wp_create_image_subsizes(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), wp_get_image_editor(), is_wp_error(), pathinfo(), wp_basename(), wp_unique_filename(), ->save(), is_wp_error(), wp_update_attachment_metadata(), _wp_make_subsizes(), file_exists(), wp_filesize(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && current_theme_supports() && $mime_type === "application/pdf" && !empty($merged_sizes) && !isset($metadata) && file_exists()118–128get_post(), get_post_mime_type(), wp_attachment_is(), wp_attachment_is(), wp_read_audio_metadata(), current_theme_supports(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), wp_get_image_editor(), is_wp_error(), pathinfo(), wp_basename(), wp_unique_filename(), ->save(), is_wp_error(), file_exists(), wp_filesize(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && !current_theme_supports() && $mime_type === "application/pdf" && !empty($merged_sizes) && !isset($metadata) && !file_exists()118–128get_post(), get_post_mime_type(), wp_attachment_is(), wp_attachment_is(), wp_read_audio_metadata(), current_theme_supports(), post_type_supports(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), wp_get_image_editor(), is_wp_error(), pathinfo(), wp_basename(), wp_unique_filename(), ->save(), is_wp_error(), file_exists(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && !current_theme_supports() && $mime_type === "application/pdf" && !empty($merged_sizes) && isset($metadata)118–128get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_attachment_is(), wp_read_audio_metadata(), current_theme_supports(), post_type_supports(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), wp_get_image_editor(), is_wp_error(), pathinfo(), wp_basename(), wp_unique_filename(), ->save(), is_wp_error(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && wp_attachment_is() && current_theme_supports() && $mime_type === "application/pdf" && !empty($merged_sizes) && !isset($metadata) && file_exists()118–128get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_read_video_metadata(), current_theme_supports(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), wp_get_image_editor(), is_wp_error(), pathinfo(), wp_basename(), wp_unique_filename(), ->save(), is_wp_error(), file_exists(), wp_filesize(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && wp_attachment_is() && !current_theme_supports() && $mime_type === "application/pdf" && !empty($merged_sizes) && !isset($metadata) && !file_exists()118–128get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_read_video_metadata(), current_theme_supports(), post_type_supports(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), wp_get_image_editor(), is_wp_error(), pathinfo(), wp_basename(), wp_unique_filename(), ->save(), is_wp_error(), file_exists(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && !wp_attachment_is() && $mime_type === "application/pdf" && !empty($merged_sizes) && !is_wp_error() && !isset($metadata) && !file_exists()119–129get_post(), get_post_mime_type(), wp_attachment_is(), wp_attachment_is(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), wp_get_image_editor(), is_wp_error(), pathinfo(), wp_basename(), wp_unique_filename(), ->save(), is_wp_error(), wp_update_attachment_metadata(), _wp_make_subsizes(), file_exists(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && !wp_attachment_is() && $mime_type === "application/pdf" && !empty($merged_sizes) && !is_wp_error() && isset($metadata)119–129get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_attachment_is(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), wp_get_image_editor(), is_wp_error(), pathinfo(), wp_basename(), wp_unique_filename(), ->save(), is_wp_error(), wp_update_attachment_metadata(), _wp_make_subsizes(), apply_filters()
$mime_type !== "image/heic" && $mime_type && file_is_displayable_image() && $mime_type === "application/pdf" && !empty($merged_sizes) && !is_wp_error() && !isset($metadata) && !file_exists()119–129get_post(), get_post_mime_type(), file_is_displayable_image(), wp_create_image_subsizes(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), wp_get_image_editor(), is_wp_error(), pathinfo(), wp_basename(), wp_unique_filename(), ->save(), is_wp_error(), wp_update_attachment_metadata(), _wp_make_subsizes(), file_exists(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && wp_attachment_is() && !current_theme_supports() && $mime_type === "application/pdf" && !empty($merged_sizes) && !isset($metadata) && file_exists()119–129get_post(), get_post_mime_type(), wp_attachment_is(), wp_read_video_metadata(), current_theme_supports(), post_type_supports(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), wp_get_image_editor(), is_wp_error(), pathinfo(), wp_basename(), wp_unique_filename(), ->save(), is_wp_error(), file_exists(), wp_filesize(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && !current_theme_supports() && !empty($value) && empty($exists) && !isset($metadata) && file_exists()120–128get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_attachment_is(), wp_read_audio_metadata(), current_theme_supports(), post_type_supports(), md5(), ids(), reset(), wp_basename(), wp_upload_bits(), file_exists(), wp_filesize(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && wp_attachment_is() && current_theme_supports() && $mime_type === "application/pdf" && !empty($merged_sizes) && !is_wp_error() && isset($metadata)121–131get_post(), get_post_mime_type(), wp_attachment_is(), wp_read_video_metadata(), current_theme_supports(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), wp_get_image_editor(), is_wp_error(), pathinfo(), wp_basename(), wp_unique_filename(), ->save(), is_wp_error(), wp_update_attachment_metadata(), _wp_make_subsizes(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && current_theme_supports() && $mime_type === "application/pdf" && !empty($merged_sizes) && !isset($metadata) && file_exists()122–132get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_attachment_is(), wp_read_audio_metadata(), current_theme_supports(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), wp_get_image_editor(), is_wp_error(), pathinfo(), wp_basename(), wp_unique_filename(), ->save(), is_wp_error(), file_exists(), wp_filesize(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && !current_theme_supports() && $mime_type === "application/pdf" && !empty($merged_sizes) && !isset($metadata) && !file_exists()122–132get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_attachment_is(), wp_read_audio_metadata(), current_theme_supports(), post_type_supports(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), wp_get_image_editor(), is_wp_error(), pathinfo(), wp_basename(), wp_unique_filename(), ->save(), is_wp_error(), file_exists(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && !wp_attachment_is() && $mime_type === "application/pdf" && !empty($merged_sizes) && !is_wp_error() && !isset($metadata) && !file_exists()123–133get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_attachment_is(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), wp_get_image_editor(), is_wp_error(), pathinfo(), wp_basename(), wp_unique_filename(), ->save(), is_wp_error(), wp_update_attachment_metadata(), _wp_make_subsizes(), file_exists(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && !current_theme_supports() && $mime_type === "application/pdf" && !empty($merged_sizes) && !isset($metadata) && file_exists()123–133get_post(), get_post_mime_type(), wp_attachment_is(), wp_attachment_is(), wp_read_audio_metadata(), current_theme_supports(), post_type_supports(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), wp_get_image_editor(), is_wp_error(), pathinfo(), wp_basename(), wp_unique_filename(), ->save(), is_wp_error(), file_exists(), wp_filesize(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && wp_attachment_is() && !current_theme_supports() && $mime_type === "application/pdf" && !empty($merged_sizes) && !isset($metadata) && file_exists()123–133get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_read_video_metadata(), current_theme_supports(), post_type_supports(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), wp_get_image_editor(), is_wp_error(), pathinfo(), wp_basename(), wp_unique_filename(), ->save(), is_wp_error(), file_exists(), wp_filesize(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && !wp_attachment_is() && $mime_type === "application/pdf" && !empty($merged_sizes) && !is_wp_error() && !isset($metadata) && file_exists()124–134get_post(), get_post_mime_type(), wp_attachment_is(), wp_attachment_is(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), wp_get_image_editor(), is_wp_error(), pathinfo(), wp_basename(), wp_unique_filename(), ->save(), is_wp_error(), wp_update_attachment_metadata(), _wp_make_subsizes(), file_exists(), wp_filesize(), apply_filters()
$mime_type !== "image/heic" && $mime_type && file_is_displayable_image() && $mime_type === "application/pdf" && !empty($merged_sizes) && !is_wp_error() && !isset($metadata) && file_exists()124–134get_post(), get_post_mime_type(), file_is_displayable_image(), wp_create_image_subsizes(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), wp_get_image_editor(), is_wp_error(), pathinfo(), wp_basename(), wp_unique_filename(), ->save(), is_wp_error(), wp_update_attachment_metadata(), _wp_make_subsizes(), file_exists(), wp_filesize(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && current_theme_supports() && $mime_type === "application/pdf" && !empty($merged_sizes) && !is_wp_error() && isset($metadata)125–135get_post(), get_post_mime_type(), wp_attachment_is(), wp_attachment_is(), wp_read_audio_metadata(), current_theme_supports(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), wp_get_image_editor(), is_wp_error(), pathinfo(), wp_basename(), wp_unique_filename(), ->save(), is_wp_error(), wp_update_attachment_metadata(), _wp_make_subsizes(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && wp_attachment_is() && current_theme_supports() && $mime_type === "application/pdf" && !empty($merged_sizes) && !is_wp_error() && !isset($metadata) && !file_exists()125–135get_post(), get_post_mime_type(), wp_attachment_is(), wp_read_video_metadata(), current_theme_supports(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), wp_get_image_editor(), is_wp_error(), pathinfo(), wp_basename(), wp_unique_filename(), ->save(), is_wp_error(), wp_update_attachment_metadata(), _wp_make_subsizes(), file_exists(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && wp_attachment_is() && current_theme_supports() && $mime_type === "application/pdf" && !empty($merged_sizes) && !is_wp_error() && isset($metadata)125–135get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_read_video_metadata(), current_theme_supports(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), wp_get_image_editor(), is_wp_error(), pathinfo(), wp_basename(), wp_unique_filename(), ->save(), is_wp_error(), wp_update_attachment_metadata(), _wp_make_subsizes(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && wp_attachment_is() && !current_theme_supports() && $mime_type === "application/pdf" && !empty($merged_sizes) && !is_wp_error() && isset($metadata)126–136get_post(), get_post_mime_type(), wp_attachment_is(), wp_read_video_metadata(), current_theme_supports(), post_type_supports(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), wp_get_image_editor(), is_wp_error(), pathinfo(), wp_basename(), wp_unique_filename(), ->save(), is_wp_error(), wp_update_attachment_metadata(), _wp_make_subsizes(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && !current_theme_supports() && $mime_type === "application/pdf" && !empty($merged_sizes) && !isset($metadata) && file_exists()127–137get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_attachment_is(), wp_read_audio_metadata(), current_theme_supports(), post_type_supports(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), wp_get_image_editor(), is_wp_error(), pathinfo(), wp_basename(), wp_unique_filename(), ->save(), is_wp_error(), file_exists(), wp_filesize(), apply_filters()
$mime_type === "image/heic" && !empty($value) && empty($exists) && isset($metadata)128–136get_post(), get_post_mime_type(), wp_create_image_subsizes(), md5(), ids(), reset(), wp_basename(), wp_upload_bits(), apply_filters(), wp_insert_attachment(), add_post_meta(), wp_generate_attachment_metadata(), wp_update_attachment_metadata(), update_post_meta(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && !wp_attachment_is() && $mime_type === "application/pdf" && !empty($merged_sizes) && !is_wp_error() && !isset($metadata) && file_exists()128–138get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_attachment_is(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), wp_get_image_editor(), is_wp_error(), pathinfo(), wp_basename(), wp_unique_filename(), ->save(), is_wp_error(), wp_update_attachment_metadata(), _wp_make_subsizes(), file_exists(), wp_filesize(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && current_theme_supports() && $mime_type === "application/pdf" && !empty($merged_sizes) && !is_wp_error() && !isset($metadata) && !file_exists()129–139get_post(), get_post_mime_type(), wp_attachment_is(), wp_attachment_is(), wp_read_audio_metadata(), current_theme_supports(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), wp_get_image_editor(), is_wp_error(), pathinfo(), wp_basename(), wp_unique_filename(), ->save(), is_wp_error(), wp_update_attachment_metadata(), _wp_make_subsizes(), file_exists(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && current_theme_supports() && $mime_type === "application/pdf" && !empty($merged_sizes) && !is_wp_error() && isset($metadata)129–139get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_attachment_is(), wp_read_audio_metadata(), current_theme_supports(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), wp_get_image_editor(), is_wp_error(), pathinfo(), wp_basename(), wp_unique_filename(), ->save(), is_wp_error(), wp_update_attachment_metadata(), _wp_make_subsizes(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && wp_attachment_is() && current_theme_supports() && $mime_type === "application/pdf" && !empty($merged_sizes) && !is_wp_error() && !isset($metadata) && !file_exists()129–139get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_read_video_metadata(), current_theme_supports(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), wp_get_image_editor(), is_wp_error(), pathinfo(), wp_basename(), wp_unique_filename(), ->save(), is_wp_error(), wp_update_attachment_metadata(), _wp_make_subsizes(), file_exists(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && !current_theme_supports() && $mime_type === "application/pdf" && !empty($merged_sizes) && !is_wp_error() && isset($metadata)130–140get_post(), get_post_mime_type(), wp_attachment_is(), wp_attachment_is(), wp_read_audio_metadata(), current_theme_supports(), post_type_supports(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), wp_get_image_editor(), is_wp_error(), pathinfo(), wp_basename(), wp_unique_filename(), ->save(), is_wp_error(), wp_update_attachment_metadata(), _wp_make_subsizes(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && wp_attachment_is() && current_theme_supports() && $mime_type === "application/pdf" && !empty($merged_sizes) && !is_wp_error() && !isset($metadata) && file_exists()130–140get_post(), get_post_mime_type(), wp_attachment_is(), wp_read_video_metadata(), current_theme_supports(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), wp_get_image_editor(), is_wp_error(), pathinfo(), wp_basename(), wp_unique_filename(), ->save(), is_wp_error(), wp_update_attachment_metadata(), _wp_make_subsizes(), file_exists(), wp_filesize(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && wp_attachment_is() && !current_theme_supports() && $mime_type === "application/pdf" && !empty($merged_sizes) && !is_wp_error() && !isset($metadata) && !file_exists()130–140get_post(), get_post_mime_type(), wp_attachment_is(), wp_read_video_metadata(), current_theme_supports(), post_type_supports(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), wp_get_image_editor(), is_wp_error(), pathinfo(), wp_basename(), wp_unique_filename(), ->save(), is_wp_error(), wp_update_attachment_metadata(), _wp_make_subsizes(), file_exists(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && wp_attachment_is() && !current_theme_supports() && $mime_type === "application/pdf" && !empty($merged_sizes) && !is_wp_error() && isset($metadata)130–140get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_read_video_metadata(), current_theme_supports(), post_type_supports(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), wp_get_image_editor(), is_wp_error(), pathinfo(), wp_basename(), wp_unique_filename(), ->save(), is_wp_error(), wp_update_attachment_metadata(), _wp_make_subsizes(), apply_filters()
$mime_type === "image/heic" && !empty($value) && empty($exists) && !isset($metadata) && !file_exists()132–140get_post(), get_post_mime_type(), wp_create_image_subsizes(), md5(), ids(), reset(), wp_basename(), wp_upload_bits(), apply_filters(), wp_insert_attachment(), add_post_meta(), wp_generate_attachment_metadata(), wp_update_attachment_metadata(), update_post_meta(), file_exists(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && current_theme_supports() && $mime_type === "application/pdf" && !empty($merged_sizes) && !is_wp_error() && !isset($metadata) && !file_exists()133–143get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_attachment_is(), wp_read_audio_metadata(), current_theme_supports(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), wp_get_image_editor(), is_wp_error(), pathinfo(), wp_basename(), wp_unique_filename(), ->save(), is_wp_error(), wp_update_attachment_metadata(), _wp_make_subsizes(), file_exists(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && !wp_attachment_is() && !empty($value) && empty($exists) && isset($metadata)134–142get_post(), get_post_mime_type(), wp_attachment_is(), wp_attachment_is(), md5(), ids(), reset(), wp_basename(), wp_upload_bits(), apply_filters(), wp_insert_attachment(), add_post_meta(), wp_generate_attachment_metadata(), wp_update_attachment_metadata(), update_post_meta(), apply_filters()
$mime_type !== "image/heic" && $mime_type && file_is_displayable_image() && !empty($value) && empty($exists) && isset($metadata)134–142get_post(), get_post_mime_type(), file_is_displayable_image(), wp_create_image_subsizes(), md5(), ids(), reset(), wp_basename(), wp_upload_bits(), apply_filters(), wp_insert_attachment(), add_post_meta(), wp_generate_attachment_metadata(), wp_update_attachment_metadata(), update_post_meta(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && current_theme_supports() && $mime_type === "application/pdf" && !empty($merged_sizes) && !is_wp_error() && !isset($metadata) && file_exists()134–144get_post(), get_post_mime_type(), wp_attachment_is(), wp_attachment_is(), wp_read_audio_metadata(), current_theme_supports(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), wp_get_image_editor(), is_wp_error(), pathinfo(), wp_basename(), wp_unique_filename(), ->save(), is_wp_error(), wp_update_attachment_metadata(), _wp_make_subsizes(), file_exists(), wp_filesize(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && !current_theme_supports() && $mime_type === "application/pdf" && !empty($merged_sizes) && !is_wp_error() && !isset($metadata) && !file_exists()134–144get_post(), get_post_mime_type(), wp_attachment_is(), wp_attachment_is(), wp_read_audio_metadata(), current_theme_supports(), post_type_supports(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), wp_get_image_editor(), is_wp_error(), pathinfo(), wp_basename(), wp_unique_filename(), ->save(), is_wp_error(), wp_update_attachment_metadata(), _wp_make_subsizes(), file_exists(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && !current_theme_supports() && $mime_type === "application/pdf" && !empty($merged_sizes) && !is_wp_error() && isset($metadata)134–144get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_attachment_is(), wp_read_audio_metadata(), current_theme_supports(), post_type_supports(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), wp_get_image_editor(), is_wp_error(), pathinfo(), wp_basename(), wp_unique_filename(), ->save(), is_wp_error(), wp_update_attachment_metadata(), _wp_make_subsizes(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && wp_attachment_is() && current_theme_supports() && $mime_type === "application/pdf" && !empty($merged_sizes) && !is_wp_error() && !isset($metadata) && file_exists()134–144get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_read_video_metadata(), current_theme_supports(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), wp_get_image_editor(), is_wp_error(), pathinfo(), wp_basename(), wp_unique_filename(), ->save(), is_wp_error(), wp_update_attachment_metadata(), _wp_make_subsizes(), file_exists(), wp_filesize(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && wp_attachment_is() && !current_theme_supports() && $mime_type === "application/pdf" && !empty($merged_sizes) && !is_wp_error() && !isset($metadata) && !file_exists()134–144get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_read_video_metadata(), current_theme_supports(), post_type_supports(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), wp_get_image_editor(), is_wp_error(), pathinfo(), wp_basename(), wp_unique_filename(), ->save(), is_wp_error(), wp_update_attachment_metadata(), _wp_make_subsizes(), file_exists(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && wp_attachment_is() && !current_theme_supports() && $mime_type === "application/pdf" && !empty($merged_sizes) && !is_wp_error() && !isset($metadata) && file_exists()135–145get_post(), get_post_mime_type(), wp_attachment_is(), wp_read_video_metadata(), current_theme_supports(), post_type_supports(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), wp_get_image_editor(), is_wp_error(), pathinfo(), wp_basename(), wp_unique_filename(), ->save(), is_wp_error(), wp_update_attachment_metadata(), _wp_make_subsizes(), file_exists(), wp_filesize(), apply_filters()
$mime_type === "image/heic" && !empty($value) && empty($exists) && !isset($metadata) && file_exists()137–145get_post(), get_post_mime_type(), wp_create_image_subsizes(), md5(), ids(), reset(), wp_basename(), wp_upload_bits(), apply_filters(), wp_insert_attachment(), add_post_meta(), wp_generate_attachment_metadata(), wp_update_attachment_metadata(), update_post_meta(), file_exists(), wp_filesize(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && !wp_attachment_is() && !empty($value) && empty($exists) && !isset($metadata) && !file_exists()138–146get_post(), get_post_mime_type(), wp_attachment_is(), wp_attachment_is(), md5(), ids(), reset(), wp_basename(), wp_upload_bits(), apply_filters(), wp_insert_attachment(), add_post_meta(), wp_generate_attachment_metadata(), wp_update_attachment_metadata(), update_post_meta(), file_exists(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && !wp_attachment_is() && !empty($value) && empty($exists) && isset($metadata)138–146get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_attachment_is(), md5(), ids(), reset(), wp_basename(), wp_upload_bits(), apply_filters(), wp_insert_attachment(), add_post_meta(), wp_generate_attachment_metadata(), wp_update_attachment_metadata(), update_post_meta(), apply_filters()
$mime_type !== "image/heic" && $mime_type && file_is_displayable_image() && !empty($value) && empty($exists) && !isset($metadata) && !file_exists()138–146get_post(), get_post_mime_type(), file_is_displayable_image(), wp_create_image_subsizes(), md5(), ids(), reset(), wp_basename(), wp_upload_bits(), apply_filters(), wp_insert_attachment(), add_post_meta(), wp_generate_attachment_metadata(), wp_update_attachment_metadata(), update_post_meta(), file_exists(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && current_theme_supports() && $mime_type === "application/pdf" && !empty($merged_sizes) && !is_wp_error() && !isset($metadata) && file_exists()138–148get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_attachment_is(), wp_read_audio_metadata(), current_theme_supports(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), wp_get_image_editor(), is_wp_error(), pathinfo(), wp_basename(), wp_unique_filename(), ->save(), is_wp_error(), wp_update_attachment_metadata(), _wp_make_subsizes(), file_exists(), wp_filesize(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && !current_theme_supports() && $mime_type === "application/pdf" && !empty($merged_sizes) && !is_wp_error() && !isset($metadata) && !file_exists()138–148get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_attachment_is(), wp_read_audio_metadata(), current_theme_supports(), post_type_supports(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), wp_get_image_editor(), is_wp_error(), pathinfo(), wp_basename(), wp_unique_filename(), ->save(), is_wp_error(), wp_update_attachment_metadata(), _wp_make_subsizes(), file_exists(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && !current_theme_supports() && $mime_type === "application/pdf" && !empty($merged_sizes) && !is_wp_error() && !isset($metadata) && file_exists()139–149get_post(), get_post_mime_type(), wp_attachment_is(), wp_attachment_is(), wp_read_audio_metadata(), current_theme_supports(), post_type_supports(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), wp_get_image_editor(), is_wp_error(), pathinfo(), wp_basename(), wp_unique_filename(), ->save(), is_wp_error(), wp_update_attachment_metadata(), _wp_make_subsizes(), file_exists(), wp_filesize(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && wp_attachment_is() && !current_theme_supports() && $mime_type === "application/pdf" && !empty($merged_sizes) && !is_wp_error() && !isset($metadata) && file_exists()139–149get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_read_video_metadata(), current_theme_supports(), post_type_supports(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), wp_get_image_editor(), is_wp_error(), pathinfo(), wp_basename(), wp_unique_filename(), ->save(), is_wp_error(), wp_update_attachment_metadata(), _wp_make_subsizes(), file_exists(), wp_filesize(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && wp_attachment_is() && current_theme_supports() && !empty($value) && empty($exists) && isset($metadata)140–148get_post(), get_post_mime_type(), wp_attachment_is(), wp_read_video_metadata(), current_theme_supports(), md5(), ids(), reset(), wp_basename(), wp_upload_bits(), apply_filters(), wp_insert_attachment(), add_post_meta(), wp_generate_attachment_metadata(), wp_update_attachment_metadata(), update_post_meta(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && !wp_attachment_is() && !empty($value) && empty($exists) && !isset($metadata) && !file_exists()142–150get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_attachment_is(), md5(), ids(), reset(), wp_basename(), wp_upload_bits(), apply_filters(), wp_insert_attachment(), add_post_meta(), wp_generate_attachment_metadata(), wp_update_attachment_metadata(), update_post_meta(), file_exists(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && !wp_attachment_is() && !empty($value) && empty($exists) && !isset($metadata) && file_exists()143–151get_post(), get_post_mime_type(), wp_attachment_is(), wp_attachment_is(), md5(), ids(), reset(), wp_basename(), wp_upload_bits(), apply_filters(), wp_insert_attachment(), add_post_meta(), wp_generate_attachment_metadata(), wp_update_attachment_metadata(), update_post_meta(), file_exists(), wp_filesize(), apply_filters()
$mime_type !== "image/heic" && $mime_type && file_is_displayable_image() && !empty($value) && empty($exists) && !isset($metadata) && file_exists()143–151get_post(), get_post_mime_type(), file_is_displayable_image(), wp_create_image_subsizes(), md5(), ids(), reset(), wp_basename(), wp_upload_bits(), apply_filters(), wp_insert_attachment(), add_post_meta(), wp_generate_attachment_metadata(), wp_update_attachment_metadata(), update_post_meta(), file_exists(), wp_filesize(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && !current_theme_supports() && $mime_type === "application/pdf" && !empty($merged_sizes) && !is_wp_error() && !isset($metadata) && file_exists()143–153get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_attachment_is(), wp_read_audio_metadata(), current_theme_supports(), post_type_supports(), apply_filters(), wp_get_registered_image_subsizes(), array_flip(), array_intersect_key(), wp_get_image_editor(), is_wp_error(), pathinfo(), wp_basename(), wp_unique_filename(), ->save(), is_wp_error(), wp_update_attachment_metadata(), _wp_make_subsizes(), file_exists(), wp_filesize(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && current_theme_supports() && !empty($value) && empty($exists) && isset($metadata)144–152get_post(), get_post_mime_type(), wp_attachment_is(), wp_attachment_is(), wp_read_audio_metadata(), current_theme_supports(), md5(), ids(), reset(), wp_basename(), wp_upload_bits(), apply_filters(), wp_insert_attachment(), add_post_meta(), wp_generate_attachment_metadata(), wp_update_attachment_metadata(), update_post_meta(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && wp_attachment_is() && current_theme_supports() && !empty($value) && empty($exists) && !isset($metadata) && !file_exists()144–152get_post(), get_post_mime_type(), wp_attachment_is(), wp_read_video_metadata(), current_theme_supports(), md5(), ids(), reset(), wp_basename(), wp_upload_bits(), apply_filters(), wp_insert_attachment(), add_post_meta(), wp_generate_attachment_metadata(), wp_update_attachment_metadata(), update_post_meta(), file_exists(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && wp_attachment_is() && current_theme_supports() && !empty($value) && empty($exists) && isset($metadata)144–152get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_read_video_metadata(), current_theme_supports(), md5(), ids(), reset(), wp_basename(), wp_upload_bits(), apply_filters(), wp_insert_attachment(), add_post_meta(), wp_generate_attachment_metadata(), wp_update_attachment_metadata(), update_post_meta(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && wp_attachment_is() && !current_theme_supports() && !empty($value) && empty($exists) && isset($metadata)145–153get_post(), get_post_mime_type(), wp_attachment_is(), wp_read_video_metadata(), current_theme_supports(), post_type_supports(), md5(), ids(), reset(), wp_basename(), wp_upload_bits(), apply_filters(), wp_insert_attachment(), add_post_meta(), wp_generate_attachment_metadata(), wp_update_attachment_metadata(), update_post_meta(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && !wp_attachment_is() && !empty($value) && empty($exists) && !isset($metadata) && file_exists()147–155get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_attachment_is(), md5(), ids(), reset(), wp_basename(), wp_upload_bits(), apply_filters(), wp_insert_attachment(), add_post_meta(), wp_generate_attachment_metadata(), wp_update_attachment_metadata(), update_post_meta(), file_exists(), wp_filesize(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && current_theme_supports() && !empty($value) && empty($exists) && !isset($metadata) && !file_exists()148–156get_post(), get_post_mime_type(), wp_attachment_is(), wp_attachment_is(), wp_read_audio_metadata(), current_theme_supports(), md5(), ids(), reset(), wp_basename(), wp_upload_bits(), apply_filters(), wp_insert_attachment(), add_post_meta(), wp_generate_attachment_metadata(), wp_update_attachment_metadata(), update_post_meta(), file_exists(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && current_theme_supports() && !empty($value) && empty($exists) && isset($metadata)148–156get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_attachment_is(), wp_read_audio_metadata(), current_theme_supports(), md5(), ids(), reset(), wp_basename(), wp_upload_bits(), apply_filters(), wp_insert_attachment(), add_post_meta(), wp_generate_attachment_metadata(), wp_update_attachment_metadata(), update_post_meta(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && wp_attachment_is() && current_theme_supports() && !empty($value) && empty($exists) && !isset($metadata) && !file_exists()148–156get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_read_video_metadata(), current_theme_supports(), md5(), ids(), reset(), wp_basename(), wp_upload_bits(), apply_filters(), wp_insert_attachment(), add_post_meta(), wp_generate_attachment_metadata(), wp_update_attachment_metadata(), update_post_meta(), file_exists(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && !current_theme_supports() && !empty($value) && empty($exists) && isset($metadata)149–157get_post(), get_post_mime_type(), wp_attachment_is(), wp_attachment_is(), wp_read_audio_metadata(), current_theme_supports(), post_type_supports(), md5(), ids(), reset(), wp_basename(), wp_upload_bits(), apply_filters(), wp_insert_attachment(), add_post_meta(), wp_generate_attachment_metadata(), wp_update_attachment_metadata(), update_post_meta(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && wp_attachment_is() && current_theme_supports() && !empty($value) && empty($exists) && !isset($metadata) && file_exists()149–157get_post(), get_post_mime_type(), wp_attachment_is(), wp_read_video_metadata(), current_theme_supports(), md5(), ids(), reset(), wp_basename(), wp_upload_bits(), apply_filters(), wp_insert_attachment(), add_post_meta(), wp_generate_attachment_metadata(), wp_update_attachment_metadata(), update_post_meta(), file_exists(), wp_filesize(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && wp_attachment_is() && !current_theme_supports() && !empty($value) && empty($exists) && !isset($metadata) && !file_exists()149–157get_post(), get_post_mime_type(), wp_attachment_is(), wp_read_video_metadata(), current_theme_supports(), post_type_supports(), md5(), ids(), reset(), wp_basename(), wp_upload_bits(), apply_filters(), wp_insert_attachment(), add_post_meta(), wp_generate_attachment_metadata(), wp_update_attachment_metadata(), update_post_meta(), file_exists(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && wp_attachment_is() && !current_theme_supports() && !empty($value) && empty($exists) && isset($metadata)149–157get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_read_video_metadata(), current_theme_supports(), post_type_supports(), md5(), ids(), reset(), wp_basename(), wp_upload_bits(), apply_filters(), wp_insert_attachment(), add_post_meta(), wp_generate_attachment_metadata(), wp_update_attachment_metadata(), update_post_meta(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && current_theme_supports() && !empty($value) && empty($exists) && !isset($metadata) && !file_exists()152–160get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_attachment_is(), wp_read_audio_metadata(), current_theme_supports(), md5(), ids(), reset(), wp_basename(), wp_upload_bits(), apply_filters(), wp_insert_attachment(), add_post_meta(), wp_generate_attachment_metadata(), wp_update_attachment_metadata(), update_post_meta(), file_exists(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && current_theme_supports() && !empty($value) && empty($exists) && !isset($metadata) && file_exists()153–161get_post(), get_post_mime_type(), wp_attachment_is(), wp_attachment_is(), wp_read_audio_metadata(), current_theme_supports(), md5(), ids(), reset(), wp_basename(), wp_upload_bits(), apply_filters(), wp_insert_attachment(), add_post_meta(), wp_generate_attachment_metadata(), wp_update_attachment_metadata(), update_post_meta(), file_exists(), wp_filesize(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && !current_theme_supports() && !empty($value) && empty($exists) && !isset($metadata) && !file_exists()153–161get_post(), get_post_mime_type(), wp_attachment_is(), wp_attachment_is(), wp_read_audio_metadata(), current_theme_supports(), post_type_supports(), md5(), ids(), reset(), wp_basename(), wp_upload_bits(), apply_filters(), wp_insert_attachment(), add_post_meta(), wp_generate_attachment_metadata(), wp_update_attachment_metadata(), update_post_meta(), file_exists(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && !current_theme_supports() && !empty($value) && empty($exists) && isset($metadata)153–161get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_attachment_is(), wp_read_audio_metadata(), current_theme_supports(), post_type_supports(), md5(), ids(), reset(), wp_basename(), wp_upload_bits(), apply_filters(), wp_insert_attachment(), add_post_meta(), wp_generate_attachment_metadata(), wp_update_attachment_metadata(), update_post_meta(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && wp_attachment_is() && current_theme_supports() && !empty($value) && empty($exists) && !isset($metadata) && file_exists()153–161get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_read_video_metadata(), current_theme_supports(), md5(), ids(), reset(), wp_basename(), wp_upload_bits(), apply_filters(), wp_insert_attachment(), add_post_meta(), wp_generate_attachment_metadata(), wp_update_attachment_metadata(), update_post_meta(), file_exists(), wp_filesize(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && wp_attachment_is() && !current_theme_supports() && !empty($value) && empty($exists) && !isset($metadata) && !file_exists()153–161get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_read_video_metadata(), current_theme_supports(), post_type_supports(), md5(), ids(), reset(), wp_basename(), wp_upload_bits(), apply_filters(), wp_insert_attachment(), add_post_meta(), wp_generate_attachment_metadata(), wp_update_attachment_metadata(), update_post_meta(), file_exists(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && wp_attachment_is() && !current_theme_supports() && !empty($value) && empty($exists) && !isset($metadata) && file_exists()154–162get_post(), get_post_mime_type(), wp_attachment_is(), wp_read_video_metadata(), current_theme_supports(), post_type_supports(), md5(), ids(), reset(), wp_basename(), wp_upload_bits(), apply_filters(), wp_insert_attachment(), add_post_meta(), wp_generate_attachment_metadata(), wp_update_attachment_metadata(), update_post_meta(), file_exists(), wp_filesize(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && current_theme_supports() && !empty($value) && empty($exists) && !isset($metadata) && file_exists()157–165get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_attachment_is(), wp_read_audio_metadata(), current_theme_supports(), md5(), ids(), reset(), wp_basename(), wp_upload_bits(), apply_filters(), wp_insert_attachment(), add_post_meta(), wp_generate_attachment_metadata(), wp_update_attachment_metadata(), update_post_meta(), file_exists(), wp_filesize(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && !current_theme_supports() && !empty($value) && empty($exists) && !isset($metadata) && !file_exists()157–165get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_attachment_is(), wp_read_audio_metadata(), current_theme_supports(), post_type_supports(), md5(), ids(), reset(), wp_basename(), wp_upload_bits(), apply_filters(), wp_insert_attachment(), add_post_meta(), wp_generate_attachment_metadata(), wp_update_attachment_metadata(), update_post_meta(), file_exists(), apply_filters()
$mime_type !== "image/heic" && !$mime_type && !current_theme_supports() && !empty($value) && empty($exists) && !isset($metadata) && file_exists()158–166get_post(), get_post_mime_type(), wp_attachment_is(), wp_attachment_is(), wp_read_audio_metadata(), current_theme_supports(), post_type_supports(), md5(), ids(), reset(), wp_basename(), wp_upload_bits(), apply_filters(), wp_insert_attachment(), add_post_meta(), wp_generate_attachment_metadata(), wp_update_attachment_metadata(), update_post_meta(), file_exists(), wp_filesize(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && wp_attachment_is() && !current_theme_supports() && !empty($value) && empty($exists) && !isset($metadata) && file_exists()158–166get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_read_video_metadata(), current_theme_supports(), post_type_supports(), md5(), ids(), reset(), wp_basename(), wp_upload_bits(), apply_filters(), wp_insert_attachment(), add_post_meta(), wp_generate_attachment_metadata(), wp_update_attachment_metadata(), update_post_meta(), file_exists(), wp_filesize(), apply_filters()
$mime_type !== "image/heic" && $mime_type && !file_is_displayable_image() && !current_theme_supports() && !empty($value) && empty($exists) && !isset($metadata) && file_exists()162–170get_post(), get_post_mime_type(), file_is_displayable_image(), wp_attachment_is(), wp_attachment_is(), wp_read_audio_metadata(), current_theme_supports(), post_type_supports(), md5(), ids(), reset(), wp_basename(), wp_upload_bits(), apply_filters(), wp_insert_attachment(), add_post_meta(), wp_generate_attachment_metadata(), wp_update_attachment_metadata(), update_post_meta(), file_exists(), wp_filesize(), apply_filters()

Across PHP versions

PHPCompiledExecutedBranchesNotes
8.6-dev28436–17024
8.528436–17024
8.428436–170248 fewer instructions than PHP 8.3
8.329236–17624
8.229236–176241 more instruction than PHP 8.1
8.129136–17724
7.429136–17724

An instruction is not a fixed amount of time, so a matching count is not necessarily the same speed; what it rules out is a difference in the work itself.

Hooks and filters fired · 3

3 hooks fire while wp_generate_attachment_metadata() runs, in this order:

  1. apply_filters( attachment_thumbnail_args )filterline 660 (+81 into the body)

    Filters the parameters for the attachment thumbnail creation.

  2. apply_filters( fallback_intermediate_image_sizes )filterline 686 (+107 into the body)

    Filters the image sizes generated for non-image mime types.

  3. apply_filters( wp_generate_attachment_metadata )filterline 750 (+171 into the body)

    Filters the generated attachment meta data.

Uses · 24

Show all 24

Used by · 13

Show all 13

Source code

function wp_generate_attachment_metadata( $attachment_id, $file ) {	$attachment = get_post( $attachment_id ); 	$metadata  = array();	$support   = false;	$mime_type = get_post_mime_type( $attachment ); 	if ( 'image/heic' === $mime_type || ( preg_match( '!^image/!', $mime_type ) && file_is_displayable_image( $file ) ) ) {		// Make thumbnails and other intermediate sizes.		$metadata = wp_create_image_subsizes( $file, $attachment_id );	} elseif ( wp_attachment_is( 'video', $attachment ) ) {		$metadata = wp_read_video_metadata( $file );		$support  = current_theme_supports( 'post-thumbnails', 'attachment:video' ) || post_type_supports( 'attachment:video', 'thumbnail' );	} elseif ( wp_attachment_is( 'audio', $attachment ) ) {		$metadata = wp_read_audio_metadata( $file );		$support  = current_theme_supports( 'post-thumbnails', 'attachment:audio' ) || post_type_supports( 'attachment:audio', 'thumbnail' );	} 	/*	 * wp_read_video_metadata() and wp_read_audio_metadata() return `false`	 * if the attachment does not exist in the local filesystem,	 * so make sure to convert the value to an array.	 */	if ( ! is_array( $metadata ) ) {		$metadata = array();	} 	if ( $support && ! empty( $metadata['image']['data'] ) ) {		// Check for existing cover.		$hash   = md5( $metadata['image']['data'] );		$posts  = get_posts(			array(				'fields'         => 'ids',				'post_type'      => 'attachment',				'post_mime_type' => $metadata['image']['mime'],				'post_status'    => 'inherit',				'posts_per_page' => 1,				'meta_key'       => '_cover_hash',				'meta_value'     => $hash,			)		);		$exists = reset( $posts ); 		if ( ! empty( $exists ) ) {			update_post_meta( $attachment_id, '_thumbnail_id', $exists );		} else {			$ext = '.jpg';			switch ( $metadata['image']['mime'] ) {				case 'image/gif':					$ext = '.gif';					break;				case 'image/png':					$ext = '.png';					break;				case 'image/webp':					$ext = '.webp';					break;			}			$basename = str_replace( '.', '-', wp_basename( $file ) ) . '-image' . $ext;			$uploaded = wp_upload_bits( $basename, '', $metadata['image']['data'] );			if ( false === $uploaded['error'] ) {				$image_attachment = array(					'post_mime_type' => $metadata['image']['mime'],					'post_type'      => 'attachment',					'post_content'   => '',				);				/**				 * Filters the parameters for the attachment thumbnail creation.				 *				 * @since 3.9.0				 *				 * @param array $image_attachment An array of parameters to create the thumbnail.				 * @param array $metadata         Current attachment metadata.				 * @param array $uploaded         {				 *     Information about the newly-uploaded file.				 *				 *     @type string $file  Filename of the newly-uploaded file.				 *     @type string $url   URL of the uploaded file.				 *     @type string $type  File type.				 * }

Changelog

Introduced in 2.1.0. Unchanged from 6.7.7 through 7.1.0.

  1. 6.7.7
  2. 6.8.8
  3. 6.9.7
  4. 7.0.4
  5. 7.1.0

Signature, return type and hooks compared across 5 parsed releases.

6.7.0
The 'image/heic' mime type is supported.from the docblock
6.0.0
The $filesize value was added to the returned array.from the docblock
2.1.0
Introduced.from the docblock

About this page

Parsed data
Generated from the wordpress-develop 6.8.8 tag, from src/wp-admin/includes/image.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.