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

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

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

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

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

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

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

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

Used by 2 functions | Uses 0 functions

wp_make_content_images_responsive()

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

Source: wp-includes/media.php:1316

Used by 0 functions | Uses 4 functions

wp_image_add_srcset_and_sizes()

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

Source: wp-includes/media.php:1366

Used by 1 function | Uses 4 functions

wp_get_attachment_image_srcset()

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

Source: wp-includes/media.php:1016

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

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

Used by 1 function | Uses 0 functions

wp_calculate_image_srcset

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

Source: wp-includes/media.php:1204

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

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

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

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

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

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

Used by 2 functions | Uses 1 function

wp_get_attachment_image_src

Filter Hook: Filters the image src result.

Source: wp-includes/media.php:852

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

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

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

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

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

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

Used by 1 function | Uses 3 functions

get_post_gallery

Filter Hook: Filters the first-found post gallery.

Source: wp-includes/media.php:3987

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

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
  • @WordPress
  • WordPress

Code is Poetry.

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