Skip to content
  • Log In
  • Register
WordPress.org
  • News
  • Download & Extend
    • Get WordPress
    • Themes
    • Patterns
    • Plugins
    • Mobile
    • Hosting
    • Openverse ↗︎
  • Learn
    • Learn WordPress
    • Documentation
    • Forums
    • Developers
    • WordPress.tv ↗︎
  • Community
    • Make WordPress
    • Photo Directory
    • Five for the Future
    • WordCamp ↗︎
    • Meetups ↗︎
    • Job Board ↗︎
  • About
    • About WordPress
    • Showcase
    • Enterprise
    • Gutenberg ↗︎
    • WordPress Swag Store ↗︎
  • Get WordPress
Get WordPress

Developer Resources

Browse: Home / Reference / wp-includes/media.php

wp_high_priority_element_flag()

Function: Accesses a flag that indicates if an element is a possible candidate for `fetchpriority=’high’`.

Source: wp-includes/media.php:5868

Used by 1 function | Uses 0 functions

wp_get_loading_optimization_attributes()

Function: Gets loading optimization attributes.

Source: wp-includes/media.php:5604

Used by 6 functions | Uses 13 functions

wp_maybe_add_fetchpriority_high_attr()

Function: Determines whether to add `fetchpriority=’high’` to loading attributes.

Source: wp-includes/media.php:5815

Used by 1 function | Uses 2 functions

wp_min_priority_img_pixels

Filter Hook: Filters the minimum square-pixels threshold for an image to be eligible as the high-priority image.

Source: wp-includes/media.php:5851

Used by 2 functions | Uses 0 functions

wp_img_tag_add_loading_optimization_attrs()

Function: Adds optimization attributes to an `img` HTML tag.

Source: wp-includes/media.php:1943

Used by 1 function | Uses 6 functions

wp_get_attachment_image_context

Filter Hook: Filters the context in which wp_get_attachment_image() is used.

Source: wp-includes/media.php:1064

Used by 1 function | Uses 0 functions

wp_img_tag_add_decoding_attr()

Function: Adds `decoding` attribute to an `img` HTML tag.

Source: wp-includes/media.php:2052

Used by 1 function | Uses 2 functions

wp_img_tag_add_decoding_attr

Filter Hook: Filters the `decoding` attribute value to add to an image. Default `async`.

Source: wp-includes/media.php:2075

Used by 1 function | Uses 0 functions

wp_content_img_tag

Filter Hook: Filters an img tag within the content for a given context.

Source: wp-includes/media.php:1897

Used by 1 function | Uses 0 functions

wp_increase_content_media_count()

Function: Increases an internal content media count variable.

Source: wp-includes/media.php:5796

Used by 2 functions | Uses 0 functions

wp_omit_loading_attr_threshold()

Function: Gets the threshold for how many of the first content media elements to not lazy-load.

Source: wp-includes/media.php:5765

Used by 2 functions | Uses 1 function

wp_omit_loading_attr_threshold

Filter Hook: Filters the threshold for how many of the first content media elements to not lazy-load.

Source: wp-includes/media.php:5781

Used by 1 function | Uses 0 functions

wp_get_webp_info()

Function: Extracts meta information about a WebP file: width, height, and type.

Source: wp-includes/media.php:5529

Used by 2 functions | Uses 1 function

media_library_infinite_scrolling

Filter Hook: Filters whether the Media Library grid has infinite scrolling. Default `false`.

Source: wp-includes/media.php:4673

Used by 1 function | Uses 0 functions

get_adjacent_image_link()

Function: Gets the next or previous image link that has the same post parent.

Source: wp-includes/media.php:3728

Used by 3 functions | Uses 5 functions

get_next_image_link()

Function: Gets the next image link that has the same post parent.

Source: wp-includes/media.php:3698

Used by 1 function | Uses 1 function

get_previous_image_link()

Function: Gets the previous image link that has the same post parent.

Source: wp-includes/media.php:3669

Used by 1 function | Uses 1 function

wp_getimagesize()

Function: Allows PHP’s getimagesize() to be debuggable when necessary.

Source: wp-includes/media.php:5452

Used by 13 functions | Uses 2 functions

wp_iframe_tag_add_loading_attr()

Function: Adds `loading` attribute to an `iframe` HTML tag.

Source: wp-includes/media.php:2172

Used by 1 function | Uses 3 functions

wp_iframe_tag_add_loading_attr

Filter Hook: Filters the `loading` attribute value to add to an iframe. Default `lazy`.

Source: wp-includes/media.php:2222

Used by 1 function | Uses 0 functions

wp_image_src_get_dimensions

Filter Hook: Filters the ‘wp_image_src_get_dimensions’ value.

Source: wp-includes/media.php:1681

Used by 1 function | Uses 0 functions

is_gd_image()

Function: Determines whether the value is an acceptable type for GD image functions.

Source: wp-includes/media.php:3908

Used by 10 functions | Uses 0 functions

wp_get_attachment_image

Filter Hook: Filters the HTML img element representing an image attachment.

Source: wp-includes/media.php:1152

Used by 1 function | Uses 0 functions

wp_show_heic_upload_error()

Function: Callback to enable showing of the user error when uploading .heic images.

Source: wp-includes/media.php:5437

Used by 0 functions | Uses 0 functions

wp_img_tag_add_loading_attr

Filter Hook: Filters the `loading` attribute value to add to an image. Default `lazy`.

Source: wp-includes/media.php:1987

Used by 2 functions | Uses 0 functions

wp_img_tag_add_width_and_height_attr()

Function: Adds `width` and `height` attributes to an `img` HTML tag.

Source: wp-includes/media.php:2094

Used by 1 function | Uses 4 functions

wp_img_tag_add_width_and_height_attr

Filter Hook: Filters whether to add the missing `width` and `height` HTML attributes to the img tag. Default `true`.

Source: wp-includes/media.php:2115

Used by 1 function | Uses 0 functions

wp_img_tag_add_srcset_and_sizes_attr()

Function: Adds `srcset` and `sizes` attributes to an existing `img` HTML tag.

Source: wp-includes/media.php:2140

Used by 1 function | Uses 3 functions

wp_img_tag_add_srcset_and_sizes_attr

Filter Hook: Filters whether to add the `srcset` and `sizes` HTML attributes to the img tag. Default `true`.

Source: wp-includes/media.php:2153

Used by 1 function | Uses 0 functions

wp_lazy_loading_enabled()

Function: Determines whether to add the `loading` attribute to the specified tag in the specified context.

Source: wp-includes/media.php:1767

Used by 5 functions | Uses 1 function
1 2 … 4 5 Next
  • About
  • News
  • Hosting
  • Donate
  • Swag
  • Documentation
  • Developers
  • Get Involved
  • Learn
  • Showcase
  • Plugins
  • Themes
  • Patterns
  • WordCamp
  • WordPress.TV
  • BuddyPress
  • bbPress
  • WordPress.com
  • Matt
  • Privacy
  • Public Code
WordPress.org
WordPress.org
  • Visit our Facebook page
  • Visit our Twitter account
  • Visit our Instagram account
  • Visit our LinkedIn account
  • Visit our YouTube channel
Code is Poetry