wp-includes/post.php:
wp_get_original_image_path()
|
Retrieves the path to an uploaded image file.
|
wp-includes/post.php:
wp_get_original_image_url()
|
Retrieve the URL to an original attachment image.
|
wp-admin/includes/image.php:
wp_get_missing_image_subsizes()
|
Compare the existing image sub-sizes (as saved in the attachment meta) to the currently registered image sub-sizes, and return the difference.
|
wp-admin/includes/image.php:
wp_update_image_subsizes()
|
If any of the currently registered image sub-sizes are missing, create them and update the image meta data.
|
wp-includes/widgets/class-wp-widget-media-image.php:
WP_Widget_Media_Image::render_media()
|
Render the media on the frontend.
|
wp-includes/class-wp-customize-manager.php:
WP_Customize_Manager::import_theme_starter_content()
|
Import theme starter content into the customized state.
|
wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php:
WP_REST_Attachments_Controller::prepare_item_for_response()
|
Prepares a single attachment output for response.
|
wp-includes/media.php:
wp_make_content_images_responsive()
|
Filters ‘img’ elements in post content to add ‘srcset’ and ‘sizes’ attributes.
|
wp-includes/media.php:
wp_get_attachment_image_srcset()
|
Retrieves the value for an image attachment’s ‘srcset’ attribute.
|
wp-includes/media.php:
wp_get_attachment_image_sizes()
|
Retrieves the value for an image attachment’s ‘sizes’ attribute.
|
wp-includes/media.php:
wp_calculate_image_sizes()
|
Creates a ‘sizes’ attribute value for an image.
|
wp-admin/includes/image-edit.php:
wp_restore_image()
|
Restores the metadata for a given attachment.
|
wp-admin/includes/image-edit.php:
wp_save_image()
|
Saves image to post along with enqueued changes in $_REQUEST[‘history’]
|
wp-admin/includes/image-edit.php:
wp_image_editor()
|
Loads the WP image-editing interface.
|
wp-admin/includes/media.php:
edit_form_image_editor()
|
Displays the image and editor in the post editor
|
wp-admin/includes/media.php:
attachment_submitbox_metadata()
|
Displays non-editable attachment metadata in the publish meta box.
|
wp-admin/includes/media.php:
get_media_item()
|
Retrieve HTML form for modifying the image attachment.
|
wp-admin/includes/post.php:
edit_post()
|
Update an existing post with values provided in $_POST.
|
wp-admin/includes/ajax-actions.php:
wp_ajax_save_attachment()
|
Ajax handler for updating attachment attributes.
|
wp-admin/includes/meta-boxes.php:
attachment_id3_data_meta_box()
|
Display fields for ID3 data
|
wp-admin/includes/class-custom-image-header.php:
Custom_Image_Header::step_2()
|
Display second step of custom header image page.
|
wp-includes/theme.php:
get_uploaded_header_images()
|
Get the header images uploaded for the current theme.
|
wp-includes/post-template.php:
prepend_attachment()
|
Wrap attachment in paragraph tag before content.
|
wp-includes/media.php:
wp_maybe_generate_attachment_metadata()
|
Maybe attempts to generate attachment metadata, if missing.
|
wp-includes/media.php:
wp_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.
|
wp-includes/media.php:
gallery_shortcode()
|
Builds the Gallery shortcode output.
|
wp-includes/media.php:
wp_playlist_shortcode()
|
Builds the Playlist shortcode output.
|
wp-includes/media.php:
wp_get_attachment_image()
|
Get an HTML img element representing an image attachment
|
wp-includes/media.php:
image_get_intermediate_size()
|
Retrieves the image’s intermediate size (resized) path, width, and height.
|
wp-includes/media.php:
image_downsize()
|
Scale an image to fit a particular size (such as ‘thumb’ or ‘medium’).
|
wp-includes/post.php:
wp_delete_attachment()
|
Trash or delete an attachment.
|
wp-includes/post.php:
wp_get_attachment_thumb_file()
|
Retrieve thumbnail for an attachment.
|
wp-includes/class-wp-xmlrpc-server.php:
wp_xmlrpc_server::_prepare_media_item()
|
Prepares media item data for return in an XML-RPC object.
|
Example return value
Expand full source codeCollapse full source code
Example for video format:
Expand full source codeCollapse full source code