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_img_tag_add_decoding_attr()

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

Source: wp-includes/media.php:1970

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:1991

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:1870

Used by 1 function | 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:5496

Used by 1 function | 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:5511

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:5526

Used by 1 function | Uses 0 functions

wp_get_loading_attr_default()

Function: Gets the default value to use for a `loading` attribute on an element.

Source: wp-includes/media.php:5446

Used by 5 functions | Uses 5 functions

wp_get_webp_info()

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

Source: wp-includes/media.php:5373

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:4522

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:3580

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:3550

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:3521

Used by 1 function | Uses 1 function

wp_getimagesize()

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

Source: wp-includes/media.php:5298

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:2088

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:2117

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:1655

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:3760

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:1126

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:5283

Used by 0 functions | Uses 0 functions

wp_img_tag_add_loading_attr()

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

Source: wp-includes/media.php:1916

Used by 1 function | Uses 3 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:1939

Used by 1 function | 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:2010

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:2031

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:2056

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:2069

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:1741

Used by 6 functions | Uses 1 function

wp_lazy_loading_enabled

Filter Hook: Filters whether to add the `loading` attribute to the specified tag in the specified context.

Source: wp-includes/media.php:1757

Used by 1 function | Uses 0 functions

wp_filter_content_tags()

Function: Filters specific tags in post content and modifies their markup.

Source: wp-includes/media.php:1782

Used by 2 functions | Uses 10 functions

wp_image_src_get_dimensions()

Function: Determines an image’s width and height dimensions based on the source file.

Source: wp-includes/media.php:1613

Used by 2 functions | Uses 2 functions

wp_image_file_matches_image_meta()

Function: Determines if the image meta data is for the image source file.

Source: wp-includes/media.php:1548

Used by 1 function | Uses 3 functions
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
Code is Poetry