File: wp-includes/media.php
-
functionwp_get_webp_info()
Extracts meta information about a WebP file: width, height, and type.
-
Filters whether the Media Library grid has infinite scrolling. Default `true`.
-
functionget_adjacent_image_link()
Gets the next or previous image link that has the same post parent.
-
functionget_next_image_link()
Gets the next image link that has the same post parent.
-
functionget_previous_image_link()
Gets the previous image link that has the same post parent.
-
functionwp_getimagesize()
Allows PHP’s getimagesize() to be debuggable when necessary.
-
functionwp_iframe_tag_add_loading_attr()
Adds `loading` attribute to an `iframe` HTML tag.
-
Filters the `loading` attribute value to add to an iframe. Default ‘lazy’.
-
Filters the wp_image_src_get_dimensions() value.
-
functionis_gd_image()
Determines whether the value is an acceptable type for GD image functions.
-
Filters the HTML img element representing an image attachment.
-
functionwp_show_heic_upload_error()
Callback to enable showing of the user error when uploading .heic images.
-
Adds `srcset` and `sizes` attributes to an existing `img` HTML tag.
-
Filters whether to add the `srcset` and `sizes` HTML attributes to the img tag. Default `true`.
-
Filters the `loading` attribute value to add to an image. Default ‘lazy’.
-
Adds `width` and `height` attributes to an `img` HTML tag.
-
Filters whether to add the missing `width` and `height` HTML attributes to the img tag. Default `true`.
-
functionwp_image_src_get_dimensions()
Determines an image’s width and height dimensions based on the source file.
-
functionwp_lazy_loading_enabled()
Determines whether to add the `loading` attribute to the specified tag in the specified context.
-
Filters whether to add the `loading` attribute to the specified tag in the specified context.
-
functionwp_filter_content_tags()
Filters specific tags in post content and modifies their markup.
-
Determines if the image meta data is for the image source file.
-
Filters whether an image path or URI matches image meta.
-
function_wp_add_additional_image_sizes()
Adds additional default image sub-sizes.
-
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.
-
Returns a normalized list of all currently registered image sub-sizes.
-
Registers the personal data exporter for media.
-
Finds and exports attachments associated with an email address.
-
Allows showing or hiding the “Create Video Playlist” button in the media library.
-
Allows overriding the list of months displayed in the media library.