Title: Media | Page 2 of 6 | Developer.WordPress.org

---

# @package: Media

 * hook[wp_image_src_get_dimensions](https://developer.wordpress.org/reference/hooks/wp_image_src_get_dimensions/)
 * Filters the ‘wp_image_src_get_dimensions’ value.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/wp_image_src_get_dimensions/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/wp_image_src_get_dimensions/#uses)
   | Source: [wp-includes/media.php:1757](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/media.php#L1757-L1757)
 * function[is_gd_image()](https://developer.wordpress.org/reference/functions/is_gd_image/)
 * Determines whether the value is an acceptable type for GD image functions.
 * Used by [10 functions](https://developer.wordpress.org/reference/functions/is_gd_image/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/functions/is_gd_image/#uses)
   | Source: [wp-includes/media.php:4120](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/media.php#L4120-L4128)
 * hook[wp_get_attachment_image](https://developer.wordpress.org/reference/hooks/wp_get_attachment_image/)
 * Filters the HTML img element representing an image attachment.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/wp_get_attachment_image/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/wp_get_attachment_image/#uses)
   | Source: [wp-includes/media.php:1215](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/media.php#L1215-L1215)
 * function[wp_show_heic_upload_error()](https://developer.wordpress.org/reference/functions/wp_show_heic_upload_error/)
 * Callback to enable showing of the user error when uploading .heic images.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/wp_show_heic_upload_error/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/functions/wp_show_heic_upload_error/#uses)
   | Source: [wp-includes/media.php:5711](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/media.php#L5711-L5717)
 * hook[wp_img_tag_add_loading_attr](https://developer.wordpress.org/reference/hooks/wp_img_tag_add_loading_attr/)
 * Filters the `loading` attribute value to add to an image. Default `lazy`.
 * Used by [2 functions](https://developer.wordpress.org/reference/hooks/wp_img_tag_add_loading_attr/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/wp_img_tag_add_loading_attr/#uses)
   | Source: [wp-includes/media.php:2214](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/media.php#L2214-L2219)
 * function[wp_img_tag_add_width_and_height_attr()](https://developer.wordpress.org/reference/functions/wp_img_tag_add_width_and_height_attr/)
 * Adds `width` and `height` attributes to an `img` HTML tag.
 * Used by [1 function](https://developer.wordpress.org/reference/functions/wp_img_tag_add_width_and_height_attr/#used-by)
   | Uses [4 functions](https://developer.wordpress.org/reference/functions/wp_img_tag_add_width_and_height_attr/#uses)
   | Source: [wp-includes/media.php:2271](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/media.php#L2271-L2312)
 * hook[wp_img_tag_add_width_and_height_attr](https://developer.wordpress.org/reference/hooks/wp_img_tag_add_width_and_height_attr/)
 * Filters whether to add the missing `width` and `height` HTML attributes to the
   img tag. Default `true`.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/wp_img_tag_add_width_and_height_attr/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/wp_img_tag_add_width_and_height_attr/#uses)
   | Source: [wp-includes/media.php:2292](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/media.php#L2292-L2292)
 * function[wp_img_tag_add_srcset_and_sizes_attr()](https://developer.wordpress.org/reference/functions/wp_img_tag_add_srcset_and_sizes_attr/)
 * Adds `srcset` and `sizes` attributes to an existing `img` HTML tag.
 * Used by [1 function](https://developer.wordpress.org/reference/functions/wp_img_tag_add_srcset_and_sizes_attr/#used-by)
   | Uses [3 functions](https://developer.wordpress.org/reference/functions/wp_img_tag_add_srcset_and_sizes_attr/#uses)
   | Source: [wp-includes/media.php:2324](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/media.php#L2324-L2345)
 * hook[wp_img_tag_add_srcset_and_sizes_attr](https://developer.wordpress.org/reference/hooks/wp_img_tag_add_srcset_and_sizes_attr/)
 * Filters whether to add the `srcset` and `sizes` HTML attributes to the img tag.
   Default `true`.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/wp_img_tag_add_srcset_and_sizes_attr/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/wp_img_tag_add_srcset_and_sizes_attr/#uses)
   | Source: [wp-includes/media.php:2337](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/media.php#L2337-L2337)
 * function[wp_image_src_get_dimensions()](https://developer.wordpress.org/reference/functions/wp_image_src_get_dimensions/)
 * Determines an image’s width and height dimensions based on the source file.
 * Used by [2 functions](https://developer.wordpress.org/reference/functions/wp_image_src_get_dimensions/#used-by)
   | Uses [2 functions](https://developer.wordpress.org/reference/functions/wp_image_src_get_dimensions/#uses)
   | Source: [wp-includes/media.php:1715](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/media.php#L1715-L1758)
 * function[wp_lazy_loading_enabled()](https://developer.wordpress.org/reference/functions/wp_lazy_loading_enabled/)
 * Determines whether to add the `loading` attribute to the specified tag in the
   specified context.
 * Used by [5 functions](https://developer.wordpress.org/reference/functions/wp_lazy_loading_enabled/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/functions/wp_lazy_loading_enabled/#uses)
   | Source: [wp-includes/media.php:1843](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/media.php#L1843-L1862)
 * hook[wp_lazy_loading_enabled](https://developer.wordpress.org/reference/hooks/wp_lazy_loading_enabled/)
 * Filters whether to add the `loading` attribute to the specified tag in the specified
   context.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/wp_lazy_loading_enabled/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/wp_lazy_loading_enabled/#uses)
   | Source: [wp-includes/media.php:1861](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/media.php#L1861-L1861)
 * function[wp_filter_content_tags()](https://developer.wordpress.org/reference/functions/wp_filter_content_tags/)
 * Filters specific tags in post content and modifies their markup.
 * Used by [2 functions](https://developer.wordpress.org/reference/functions/wp_filter_content_tags/#used-by)
   | Uses [10 functions](https://developer.wordpress.org/reference/functions/wp_filter_content_tags/#uses)
   | Source: [wp-includes/media.php:1886](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/media.php#L1886-L2006)
 * function[wp_image_file_matches_image_meta()](https://developer.wordpress.org/reference/functions/wp_image_file_matches_image_meta/)
 * Determines if the image meta data is for the image source file.
 * Used by [1 function](https://developer.wordpress.org/reference/functions/wp_image_file_matches_image_meta/#used-by)
   | Uses [3 functions](https://developer.wordpress.org/reference/functions/wp_image_file_matches_image_meta/#uses)
   | Source: [wp-includes/media.php:1650](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/media.php#L1650-L1702)
 * hook[wp_image_file_matches_image_meta](https://developer.wordpress.org/reference/hooks/wp_image_file_matches_image_meta/)
 * Filters whether an image path or URI matches image meta.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/wp_image_file_matches_image_meta/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/wp_image_file_matches_image_meta/#uses)
   | Source: [wp-includes/media.php:1701](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/media.php#L1701-L1701)
 * function[_wp_add_additional_image_sizes()](https://developer.wordpress.org/reference/functions/_wp_add_additional_image_sizes/)
 * Adds additional default image sub-sizes.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/_wp_add_additional_image_sizes/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/functions/_wp_add_additional_image_sizes/#uses)
   | Source: [wp-includes/media.php:5694](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/media.php#L5694-L5699)
 * hook[wp_image_resize_identical_dimensions](https://developer.wordpress.org/reference/hooks/wp_image_resize_identical_dimensions/)
 * Filters whether to proceed with making an image sub-size with identical dimensions
   with the original/source image. Differences of 1px may be due to rounding and
   are ignored.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/wp_image_resize_identical_dimensions/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/wp_image_resize_identical_dimensions/#uses)
   | Source: [wp-includes/media.php:661](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/media.php#L661-L661)
 * function[wp_get_registered_image_subsizes()](https://developer.wordpress.org/reference/functions/wp_get_registered_image_subsizes/)
 * Returns a normalized list of all currently registered image sub-sizes.
 * Used by [4 functions](https://developer.wordpress.org/reference/functions/wp_get_registered_image_subsizes/#used-by)
   | Uses [3 functions](https://developer.wordpress.org/reference/functions/wp_get_registered_image_subsizes/#uses)
   | Source: [wp-includes/media.php:912](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/media.php#L912-L956)
 * function[wp_register_media_personal_data_exporter()](https://developer.wordpress.org/reference/functions/wp_register_media_personal_data_exporter/)
 * Registers the personal data exporter for media.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/wp_register_media_personal_data_exporter/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/functions/wp_register_media_personal_data_exporter/#uses)
   | Source: [wp-includes/media.php:5602](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/media.php#L5602-L5609)
 * function[wp_media_personal_data_exporter()](https://developer.wordpress.org/reference/functions/wp_media_personal_data_exporter/)
 * Finds and exports attachments associated with an email address.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/wp_media_personal_data_exporter/#used-by)
   | Uses [4 functions](https://developer.wordpress.org/reference/functions/wp_media_personal_data_exporter/#uses)
   | Source: [wp-includes/media.php:5625](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/media.php#L5625-L5679)
 * hook[media_library_show_audio_playlist](https://developer.wordpress.org/reference/hooks/media_library_show_audio_playlist/)
 * Allows showing or hiding the “Create Audio Playlist” button in the media library.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/media_library_show_audio_playlist/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/media_library_show_audio_playlist/#uses)
   | Source: [wp-includes/media.php:4832](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/media.php#L4832-L4832)
 * hook[media_library_show_video_playlist](https://developer.wordpress.org/reference/hooks/media_library_show_video_playlist/)
 * Allows showing or hiding the “Create Video Playlist” button in the media library.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/media_library_show_video_playlist/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/media_library_show_video_playlist/#uses)
   | Source: [wp-includes/media.php:4860](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/media.php#L4860-L4860)
 * hook[media_library_months_with_files](https://developer.wordpress.org/reference/hooks/media_library_months_with_files/)
 * Allows overriding the list of months displayed in the media library.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/media_library_months_with_files/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/media_library_months_with_files/#uses)
   | Source: [wp-includes/media.php:4886](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/media.php#L4886-L4886)
 * function[wp_get_additional_image_sizes()](https://developer.wordpress.org/reference/functions/wp_get_additional_image_sizes/)
 * Retrieves additional image sizes.
 * Used by [6 functions](https://developer.wordpress.org/reference/functions/wp_get_additional_image_sizes/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/functions/wp_get_additional_image_sizes/#uses)
   | Source: [wp-includes/media.php:23](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/media.php#L23-L31)
 * function[wp_image_matches_ratio()](https://developer.wordpress.org/reference/functions/wp_image_matches_ratio/)
 * Helper function to test if aspect ratios for two images match.
 * Used by [2 functions](https://developer.wordpress.org/reference/functions/wp_image_matches_ratio/#used-by)
   | Uses [2 functions](https://developer.wordpress.org/reference/functions/wp_image_matches_ratio/#uses)
   | Source: [wp-includes/media.php:726](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/media.php#L726-L743)
 * hook[wp_calculate_image_srcset_meta](https://developer.wordpress.org/reference/hooks/wp_calculate_image_srcset_meta/)
 * Pre-filters the image meta to be able to fix inconsistencies in the stored data.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/wp_calculate_image_srcset_meta/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/wp_calculate_image_srcset_meta/#uses)
   | Source: [wp-includes/media.php:1359](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/media.php#L1359-L1359)
 * function[_wp_get_attachment_relative_path()](https://developer.wordpress.org/reference/functions/_wp_get_attachment_relative_path/)
 * Gets the attachment path relative to the upload directory.
 * Used by [3 functions](https://developer.wordpress.org/reference/functions/_wp_get_attachment_relative_path/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/functions/_wp_get_attachment_relative_path/#uses)
   | Source: [wp-includes/media.php:1244](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/media.php#L1244-L1258)
 * function[wp_image_add_srcset_and_sizes()](https://developer.wordpress.org/reference/functions/wp_image_add_srcset_and_sizes/)
 * Adds ‘srcset’ and ‘sizes’ attributes to an existing ‘img’ element.
 * Used by [1 function](https://developer.wordpress.org/reference/functions/wp_image_add_srcset_and_sizes/#used-by)
   | Uses [5 functions](https://developer.wordpress.org/reference/functions/wp_image_add_srcset_and_sizes/#uses)
   | Source: [wp-includes/media.php:1773](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/media.php#L1773-L1830)
 * function[wp_calculate_image_srcset()](https://developer.wordpress.org/reference/functions/wp_calculate_image_srcset/)
 * A helper function to calculate the image sources to include in a ‘srcset’ attribute.
 * Used by [4 functions](https://developer.wordpress.org/reference/functions/wp_calculate_image_srcset/#used-by)
   | Uses [8 functions](https://developer.wordpress.org/reference/functions/wp_calculate_image_srcset/#uses)
   | Source: [wp-includes/media.php:1343](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/media.php#L1343-L1545)
 * hook[max_srcset_image_width](https://developer.wordpress.org/reference/hooks/max_srcset_image_width/)
 * Filters the maximum image width to be included in a ‘srcset’ attribute.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/max_srcset_image_width/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/max_srcset_image_width/#uses)
   | Source: [wp-includes/media.php:1444](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/media.php#L1444-L1444)

 [Previous Page](https://developer.wordpress.org/reference/package/media/?output_format=md)

[1](https://developer.wordpress.org/reference/package/media/?output_format=md) 2
[3](https://developer.wordpress.org/reference/package/media/page/3/?output_format=md)
[4](https://developer.wordpress.org/reference/package/media/page/4/?output_format=md)…
[6](https://developer.wordpress.org/reference/package/media/page/6/?output_format=md)

 [Next Page](https://developer.wordpress.org/reference/package/media/page/3/?output_format=md)