@package: Media
-
functionwp_calculate_image_srcset()
A helper function to calculate the image sources to include in a ‘srcset’ attribute.
-
Filters the maximum image width to be included in a ‘srcset’ attribute.
-
Filters an image’s ‘srcset’ sources.
-
functionwp_get_attachment_image_sizes()
Retrieves the value for an image attachment’s ‘sizes’ attribute.
-
functionwp_calculate_image_sizes()
Creates a ‘sizes’ attribute value for an image.
-
Filters the output of image_get_intermediate_size()
-
functionwp_get_attachment_image_url()
Gets the URL of an image attachment.
-
function_wp_get_image_size_from_meta()
Gets the image size as array from its meta data.
-
Filters the attachment image source result.
-
Filters an attachment ID found by URL.
-
Filters the embedded media types that are allowed to be returned from the content blob.
-
Filters dimensions to constrain down-sampled images to.
-
functionattachment_url_to_postid()
Tries to convert an attachment URL into a post ID.
-
functionwpview_media_sandbox_styles()
Returns the URLs for CSS files used in an iframe-sandbox’d TinyMCE media view.
-
Filters the list of all found galleries in the given post.
-
functionget_post_gallery()
Checks a specified post’s content for gallery and, if present, return the first
-
hookget_post_gallery
Filters the first-found post gallery.
-
functionget_post_galleries_images()
Retrieves the image srcs from galleries from a post’s content, if present.
-
functionget_post_gallery_images()
Checks a post’s content for galleries and return the image srcs for the first found gallery.
-
Maybe attempts to generate attachment metadata, if missing.
-
Filters the list of media attached to the given post.
-
functionget_media_embedded_in_content()
Checks the HTML content for an audio, video, object, embed, or iframe tags.
-
functionget_post_galleries()
Retrieves galleries from the passed post’s content.
-
functionwp_prepare_attachment_for_js()
Prepares an attachment post object for JS, where it is expected to be JSON-encoded and fit into an Attachment model.
-
Filters the attachment data prepared for JavaScript.
-
functionwp_enqueue_media()
Enqueues all scripts, styles, settings, and templates necessary to use all media JS APIs.
-
functionwp_max_upload_size()
Determines the maximum upload size allowed in php.ini.
-
Filters the media view settings.
-
Filters the maximum upload size allowed in php.ini.
-
Filters the media view strings.