WordPress.org

  • Showcase
  • Themes
  • Plugins
  • Mobile
  • Support
    • Documentation
    • Forums
  • Get Involved
  • About
  • Blog
  • Hosting
  • Get WordPress

Code Reference

Skip to content
Filter by type:
Search
Browse: Home / Reference / wp-includes/media.php

wp_register_media_personal_data_exporter()

Function: Registers the personal data exporter for media

Source: wp-includes/media.php:3967

Used by 0 functions | Uses 1 function

wp_media_personal_data_exporter()

Function: Finds and exports attachments associated with an email address.

Source: wp-includes/media.php:3985

Used by 0 functions | Uses 4 functions

media_library_show_audio_playlist

Filter Hook: Allows showing or hiding the “Create Audio Playlist” button in the media library.

Source: wp-includes/media.php:3370

Used by 1 function | Uses 0 functions

media_library_show_video_playlist

Filter Hook: Allows showing or hiding the “Create Video Playlist” button in the media library.

Source: wp-includes/media.php:3398

Used by 1 function | Uses 0 functions

media_library_months_with_files

Filter Hook: Allows overriding the list of months displayed in the media library.

Source: wp-includes/media.php:3425

Used by 1 function | Uses 0 functions

wp_get_additional_image_sizes()

Function: Retrieve additional image sizes.

Source: wp-includes/media.php:18

Used by 6 functions | Uses 0 functions

wp_image_matches_ratio()

Function: Helper function to test if aspect ratios for two images match.

Source: wp-includes/media.php:633

Used by 2 functions | Uses 1 function

wp_calculate_image_srcset_meta

Filter Hook: Let plugins pre-filter the image meta to be able to fix inconsistencies in the stored data.

Source: wp-includes/media.php:1055

Used by 1 function | Uses 0 functions

_wp_get_attachment_relative_path()

Function: Get the attachment path relative to the upload directory.

Source: wp-includes/media.php:956

Used by 2 functions | Uses 0 functions

wp_image_add_srcset_and_sizes()

Function: Adds ‘srcset’ and ‘sizes’ attributes to an existing ‘img’ element.

Source: wp-includes/media.php:1365

Used by 1 function | Uses 4 functions

wp_make_content_images_responsive()

Function: Filters ‘img’ elements in post content to add ‘srcset’ and ‘sizes’ attributes.

Source: wp-includes/media.php:1315

Used by 0 functions | Uses 4 functions

wp_get_attachment_image_srcset()

Function: Retrieves the value for an image attachment’s ‘srcset’ attribute.

Source: wp-includes/media.php:1015

Used by 0 functions | Uses 4 functions

wp_calculate_image_srcset()

Function: A helper function to calculate the image sources to include in a ‘srcset’ attribute.

Source: wp-includes/media.php:1044

Used by 4 functions | Uses 11 functions

max_srcset_image_width

Filter Hook: Filters the maximum image width to be included in a ‘srcset’ attribute.

Source: wp-includes/media.php:1122

Used by 1 function | Uses 0 functions

wp_calculate_image_srcset

Filter Hook: Filters an image’s ‘srcset’ sources.

Source: wp-includes/media.php:1203

Used by 1 function | Uses 0 functions

wp_get_attachment_image_sizes()

Function: Retrieves the value for an image attachment’s ‘sizes’ attribute.

Source: wp-includes/media.php:1233

Used by 0 functions | Uses 4 functions

wp_calculate_image_sizes()

Function: Creates a ‘sizes’ attribute value for an image.

Source: wp-includes/media.php:1265

Used by 4 functions | Uses 5 functions

wp_calculate_image_sizes

Filter Hook: Filters the output of ‘wp_calculate_image_sizes()’.

Source: wp-includes/media.php:1302

Used by 1 function | Uses 0 functions

image_get_intermediate_size

Filter Hook: Filters the output of image_get_intermediate_size()

Source: wp-includes/media.php:776

Used by 1 function | Uses 0 functions

wp_get_attachment_image_url()

Function: Get the URL of an image attachment.

Source: wp-includes/media.php:942

Used by 2 functions | Uses 1 function

_wp_get_image_size_from_meta()

Function: Get the image size as array from its meta data.

Source: wp-includes/media.php:985

Used by 2 functions | Uses 1 function

wp_get_attachment_image_src

Filter Hook: Filters the image src result.

Source: wp-includes/media.php:851

Used by 1 function | Uses 0 functions

attachment_url_to_postid

Filter Hook: Filters an attachment id found by URL.

Source: wp-includes/media.php:3943

Used by 1 function | Uses 0 functions

media_embedded_in_content_allowed_types

Filter Hook: Filters the embedded media types that are allowed to be returned from the content blob.

Source: wp-includes/media.php:3733

Used by 1 function | Uses 0 functions

wp_constrain_dimensions

Filter Hook: Filters dimensions to constrain down-sampled images to.

Source: wp-includes/media.php:472

Used by 1 function | Uses 0 functions

attachment_url_to_postid()

Function: Tries to convert an attachment URL into a post ID.

Source: wp-includes/media.php:3911

Used by 2 functions | Uses 5 functions

wpview_media_sandbox_styles()

Function: Returns the URLs for CSS files used in an iframe-sandbox’d TinyMCE media view.

Source: wp-includes/media.php:3953

Used by 2 functions | Uses 2 functions

get_post_gallery()

Function: Check a specified post’s content for gallery and, if present, return the first

Source: wp-includes/media.php:3829

Used by 1 function | Uses 3 functions

get_post_gallery

Filter Hook: Filters the first-found post gallery.

Source: wp-includes/media.php:3842

Used by 1 function | Uses 0 functions

get_post_galleries_images()

Function: Retrieve the image srcs from galleries from a post’s content, if present

Source: wp-includes/media.php:3856

Used by 0 functions | Uses 2 functions
1 2 … 4 Next »
  • About
  • Blog
  • Hosting
  • Donate
  • Support
  • Developers
  • Get Involved
  • Showcase
  • Plugins
  • Themes
  • WordCamp
  • WordPress.TV
  • BuddyPress
  • bbPress
  • WordPress.com
  • Matt
  • Privacy
  • Public Code

Code is Poetry.

Skip to toolbar
  • About WordPress
    • About WordPress
    • WordPress.org
    • Documentation
    • Support Forums
    • Feedback
  • Log In
  • Register