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
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
- Scaling
- Constant
- Instructions
- 36–170
- Plugin surface
- 3 hooks
- Called by
- 13
Reads or writes the filesystem via file_exists().
No loop in the body: the same number of instructions runs whatever you pass in.
Executed per call on PHP 8.5, depending on the branch taken. The body compiles to 284.
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.
13 places in core call this, so the cost is paid more often than your own code shows.
What it touches
- querycontent query
get_post()called directly - hookthird-party callbacks
apply_filters()called directly - filesystemfilesystem access
file_exists()called directly - optionoption read or write
get_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.
| When | Instructions | Calls it makes |
|---|---|---|
$mime_type === "image/heic" && $mime_type !== "application/pdf" && isset($metadata) | 36–40 | get_post(), get_post_mime_type(), wp_create_image_subsizes(), apply_filters() |
$mime_type === "image/heic" && $mime_type !== "application/pdf" && !isset($metadata) && !file_exists() | 40–44 | get_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–46 | get_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–46 | get_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–49 | get_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–50 | get_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–50 | get_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–50 | get_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–52 | get_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–54 | get_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–55 | get_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–55 | get_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–56 | get_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–56 | get_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–56 | get_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–57 | get_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–59 | get_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–60 | get_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–60 | get_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–60 | get_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–61 | get_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–61 | get_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–61 | get_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–61 | get_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–68 | get_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–64 | get_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–65 | get_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–65 | get_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–65 | get_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–65 | get_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–65 | get_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–72 | get_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–66 | get_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–74 | get_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–74 | get_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–69 | get_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–69 | get_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–76 | get_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–70 | get_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–70 | get_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–77 | get_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–69 | get_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–78 | get_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–78 | get_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–78 | get_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–80 | get_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–80 | get_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–74 | get_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–73 | get_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–82 | get_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–82 | get_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–82 | get_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–83 | get_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–83 | get_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–75 | get_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–75 | get_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–84 | get_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–84 | get_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–84 | get_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–85 | get_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–85 | get_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–86 | get_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–86 | get_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–86 | get_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–78 | get_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–87 | get_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–79 | get_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–79 | get_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–79 | get_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–88 | get_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–88 | get_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–88 | get_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–88 | get_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–89 | get_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–89 | get_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–89 | get_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–89 | get_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–81 | get_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–90 | get_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–91 | get_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–91 | get_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–83 | get_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–92 | get_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–92 | get_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–92 | get_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–92 | get_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–84 | get_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–84 | get_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–93 | get_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–93 | get_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–93 | get_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–93 | get_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–93 | get_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–93 | get_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–85 | get_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–85 | get_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–85 | get_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–94 | get_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–86 | get_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–95 | get_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–94 | get_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–96 | get_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–96 | get_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–96 | get_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–88 | get_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–97 | get_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–97 | get_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–97 | get_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–97 | get_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–97 | get_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–97 | get_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–89 | get_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–89 | get_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–89 | get_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–98 | get_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–98 | get_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–90 | get_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–90 | get_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–90 | get_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–90 | get_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–98 | get_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–100 | get_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–101 | get_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–101 | get_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–101 | get_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–101 | get_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–101 | get_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–100 | get_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–100 | get_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–93 | get_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–102 | get_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–102 | get_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–94 | get_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–94 | get_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–94 | get_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–94 | get_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–94 | get_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–103 | get_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–95 | get_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–103 | get_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–105 | get_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–105 | get_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–104 | get_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–104 | get_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–104 | get_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–106 | get_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–106 | get_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–98 | get_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–98 | get_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–107 | get_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–106 | get_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–99 | get_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–99 | get_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–109 | get_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–109 | get_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–108 | get_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–110 | get_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–109 | get_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–109 | get_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–110 | get_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–110 | get_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–110 | get_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–103 | get_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–112 | get_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–111 | get_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–113 | get_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–113 | get_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–113 | get_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–113 | get_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–115 | get_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–114 | get_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–114 | get_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–114 | get_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–115 | get_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–115 | get_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–115 | get_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–115 | get_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–117 | get_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–118 | get_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–118 | get_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–119 | get_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–119 | get_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–119 | get_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–119 | get_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–118 | get_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–120 | get_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–119 | get_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–119 | get_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–119 | get_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–119 | get_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–119 | get_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–120 | get_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–122 | get_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–123 | get_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–123 | get_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–123 | get_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–123 | get_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–124 | get_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–124 | get_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–124 | get_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–124 | get_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–123 | get_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–123 | get_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–125 | get_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–125 | get_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–124 | get_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–124 | get_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–127 | get_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–128 | get_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–128 | get_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–128 | get_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–128 | get_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–128 | get_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–128 | get_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–129 | get_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–129 | get_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–129 | get_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–129 | get_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–128 | get_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–131 | get_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–132 | get_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–132 | get_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–133 | get_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–133 | get_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–133 | get_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–134 | get_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–134 | get_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–135 | get_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–135 | get_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–135 | get_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–136 | get_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–137 | get_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–136 | get_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–138 | get_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–139 | get_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–139 | get_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–139 | get_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–140 | get_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–140 | get_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–140 | get_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–140 | get_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–140 | get_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–143 | get_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–142 | get_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–142 | get_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–144 | get_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–144 | get_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–144 | get_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–144 | get_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–144 | get_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–145 | get_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–145 | get_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–146 | get_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–146 | get_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–146 | get_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–148 | get_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–148 | get_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–149 | get_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–149 | get_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–148 | get_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–150 | get_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–151 | get_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–151 | get_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–153 | get_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–152 | get_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–152 | get_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–152 | get_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–153 | get_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–155 | get_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–156 | get_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–156 | get_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–156 | get_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–157 | get_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–157 | get_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–157 | get_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–157 | get_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–160 | get_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–161 | get_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–161 | get_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–161 | get_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–161 | get_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–161 | get_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–162 | get_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–165 | get_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–165 | get_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–166 | get_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–166 | get_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–170 | get_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
| PHP | Compiled | Executed | Branches | Notes |
|---|---|---|---|---|
| 8.6-dev | 284 | 36–170 | 24 | |
| 8.5 | 284 | 36–170 | 24 | |
| 8.4 | 284 | 36–170 | 24 | 8 fewer instructions than PHP 8.3 |
| 8.3 | 292 | 36–176 | 24 | |
| 8.2 | 292 | 36–176 | 24 | 1 more instruction than PHP 8.1 |
| 8.1 | 291 | 36–177 | 24 | |
| 7.4 | 291 | 36–177 | 24 |
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:
- apply_filters( attachment_thumbnail_args )filterline 660 (+81 into the body)
Filters the parameters for the attachment thumbnail creation.
- apply_filters( fallback_intermediate_image_sizes )filterline 686 (+107 into the body)
Filters the image sizes generated for non-image mime types.
- apply_filters( wp_generate_attachment_metadata )filterline 750 (+171 into the body)
Filters the generated attachment meta data.
Uses · 24
- get_post()Retrieves post data given a post ID or post object.
- get_post_mime_type()Retrieves the mime type of an attachment based on the ID.
- file_is_displayable_image()Validates that file is suitable for displaying within a web page.
- wp_create_image_subsizes()Creates image sub-sizes, adds the new data to the image meta `sizes` array, and updates the image metadata.
- wp_attachment_is()Verifies an attachment is of a given type.
- wp_read_video_metadata()Retrieves metadata from a video file's ID3 tags.
- current_theme_supports()Checks a theme's support for a given feature.
- post_type_supports()Checks a post type's support for a given feature.
- wp_read_audio_metadata()Retrieves metadata from an audio file's ID3 tags.
- get_posts()Retrieves an array of the latest posts, or posts matching the given criteria.
- update_post_meta()Updates a post meta field based on the given post ID.
- wp_basename()i18n-friendly version of basename().
Show all 24
- wp_upload_bits()Creates a file in the upload folder with given content.
- apply_filters()Calls the callback functions that have been added to a filter hook.
- wp_insert_attachment()Inserts an attachment.
- add_post_meta()Adds a meta field to the given post.
- wp_generate_attachment_metadata()Generates attachment meta data and create image sub-sizes for images.
- wp_update_attachment_metadata()Updates metadata for an attachment.
- wp_get_registered_image_subsizes()Returns a normalized list of all currently registered image sub-sizes.
- wp_get_image_editor()Returns a WP_Image_Editor instance and loads file into it.
- is_wp_error()Checks whether the given variable is a WordPress Error.
- wp_unique_filename()Gets a filename that is sanitized and unique for the given directory.
- _wp_make_subsizes()Low-level function to create image sub-sizes.
- wp_filesize()Wrapper for PHP filesize with filters and casting the result as an integer.
Used by · 13
- Custom_Background::handle_upload()Handles an Image upload for the background image.
- Custom_Image_Header::insert_attachment()Inserts an attachment and its metadata.
- Custom_Image_Header::step_2()Displays second step of custom header image page.
- WP_Customize_Manager::import_theme_starter_content()Imports theme starter content into the customized state.
- WP_REST_Attachments_Controller::create_item()Creates a single attachment.
- WP_REST_Attachments_Controller::edit_media_item()Applies edits to a media item and creates a new attachment record.
- WP_Site_Icon::insert_attachment()Inserts an attachment.
- media_handle_sideload()Handles a side-loaded file in the same way as an uploaded file is handled by media_handle_upload().
- media_handle_upload()Saves a file submitted from a POST request and create an attachment post for it.
- wp_ajax_crop_image()Handles cropping an image via AJAX.
- wp_generate_attachment_metadata()Generates attachment meta data and create image sub-sizes for images.
- wp_maybe_generate_attachment_metadata()Maybe attempts to generate attachment metadata, if missing.
Show all 13
- wp_xmlrpc_server::mw_newMediaObject()Uploads a file, following your settings.
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.
Signature, return type and hooks compared across 5 parsed releases.
$filesize value was added to the returned array.from the docblockAbout this page
- Parsed data
- Generated from the wordpress-develop 7.0.4 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.