File: wp-includes/media.php
-
function wp_get_avif_info() Extracts meta information about an AVIF file: width, height, bit depth, and number of channels. -
Filters the header-specific contexts. -
Filters the loading optimization attributes. -
Filters whether to short-circuit loading optimization attributes. -
function wp_high_priority_element_flag() Accesses a flag that indicates if an element is a possible candidate for `fetchpriority=’high’`. -
Gets loading optimization attributes. -
Determines whether to add `fetchpriority=’high’` to loading attributes. -
Filters the minimum square-pixels threshold for an image to be eligible as the high-priority image. -
Adds optimization attributes to an `img` HTML tag. -
Filters the context in which wp_get_attachment_image() is used. -
Filters the `decoding` attribute value to add to an image. Default `async`. -
hook wp_content_img_tag Filters an img tag within the content for a given context. -
function wp_increase_content_media_count() Increases an internal content media count variable. -
function wp_omit_loading_attr_threshold() Gets the threshold for how many of the first content media elements to not lazy-load. -
Filters the threshold for how many of the first content media elements to not lazy-load. -
function wp_get_webp_info() Extracts meta information about a WebP file: width, height, and type. -
Filters whether the Media Library grid has infinite scrolling. Default `false`. -
function get_adjacent_image_link() Gets the next or previous image link that has the same post parent. -
function get_next_image_link() Gets the next image link that has the same post parent. -
function get_previous_image_link() Gets the previous image link that has the same post parent. -
function wp_getimagesize() Allows PHP’s getimagesize() to be debuggable when necessary. -
function wp_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. -
function is_gd_image() Determines whether the value is an acceptable type for GD image functions. -
Filters the HTML img element representing an image attachment. -
function wp_show_heic_upload_error() Callback to enable showing of the user error when uploading .heic images. -
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`.