Skip to content
  • Log In
  • Register
WordPress.org
  • News
  • Download & Extend
    • Get WordPress
    • Themes
    • Patterns
    • Plugins
    • Openverse
    • Mobile
    • Hosting
  • Learn
    • Learn WordPress
    • Documentation
    • Forums
    • WordPress.tv
    • Developers
  • Community
    • Make WordPress
    • WordCamp
    • Meetups
    • Photo Directory
    • Job Board
    • Five for the Future
  • About
    • About WordPress
    • Showcase
    • Gutenberg
    • Enterprise
  • 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:1964

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

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

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

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

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

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

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

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

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

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

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

Used by 1 function | Uses 1 function

wp_getimagesize()

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

Source: wp-includes/media.php:5280

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

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

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

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

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

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

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

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

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

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

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

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

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

Used by 5 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:1751

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

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

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

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