wp-includes/post.php:
wp_get_original_image_url()
|
Retrieve the URL to an original attachment image.
|
wp-includes/media.php:
wp_media_personal_data_exporter()
|
Finds and exports attachments associated with an email address.
|
wp-includes/widgets/class-wp-widget-media-audio.php:
WP_Widget_Media_Audio::render_media()
|
Render the media on the frontend.
|
wp-includes/widgets/class-wp-widget-media-video.php:
WP_Widget_Media_Video::render_media()
|
Render the media on the frontend.
|
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/theme.php:
get_header_video_url()
|
Retrieve header video URL for custom header.
|
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-admin/includes/class-wp-site-icon.php:
WP_Site_Icon::create_attachment_object()
|
Creates an attachment ‘object’.
|
wp-admin/includes/ajax-actions.php:
wp_ajax_crop_image()
|
Ajax handler for cropping an image.
|
wp-admin/includes/export.php:
export_wp()
|
Generates the WXR export file for download.
|
wp-admin/includes/image-edit.php:
wp_save_image()
|
Saves image to post along with enqueued changes in $_REQUEST[‘history’]
|
wp-admin/includes/image.php:
_load_image_to_edit_path()
|
Retrieve the path or url of an attachment’s attached file.
|
wp-admin/includes/template.php:
_media_states()
|
Function to echo the attachment media states as HTML.
|
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_attachment_fields_to_edit()
|
Retrieves the attachment fields to edit form fields.
|
wp-admin/includes/media.php:
media_sideload_image()
|
Downloads an image from the specified URL and attaches it to a post.
|
wp-admin/includes/media.php:
image_link_input_fields()
|
Retrieve HTML for the Link URL buttons with the default link type as specified.
|
wp-admin/includes/class-custom-image-header.php:
Custom_Image_Header::create_attachment_object()
|
Create an attachment ‘object’.
|
wp-admin/includes/class-custom-image-header.php:
Custom_Image_Header::ajax_header_crop()
|
Gets attachment uploaded by Media Manager, crops it, then saves it as a new object. Returns JSON-encoded object details.
|
wp-admin/includes/class-custom-image-header.php:
Custom_Image_Header::step_3()
|
Display third step of custom header image page.
|
wp-includes/theme.php:
_delete_attachment_theme_mod()
|
Checks an attachment being deleted to see if it’s a header or background image.
|
wp-includes/theme.php:
get_uploaded_header_images()
|
Get the header images uploaded for the current theme.
|
wp-includes/deprecated.php:
get_the_attachment_link()
|
Retrieve HTML content of attachment image with link.
|
wp-includes/deprecated.php:
get_attachment_icon_src()
|
Retrieve icon URL and Path.
|
wp-includes/post-template.php:
wp_get_attachment_link()
|
Retrieve an attachment page link using an image or icon, if possible.
|
wp-includes/post-template.php:
prepend_attachment()
|
Wrap attachment in paragraph tag before content.
|
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:
wp_video_shortcode()
|
Builds the Video shortcode output.
|
wp-includes/media.php:
wp_playlist_shortcode()
|
Builds the Playlist shortcode output.
|
wp-includes/media.php:
wp_audio_shortcode()
|
Builds the Audio shortcode output.
|
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_get_attachment_thumb_url()
|
Retrieve URL for an attachment thumbnail.
|
wp-includes/class-wp-xmlrpc-server.php:
wp_xmlrpc_server::_prepare_media_item()
|
Prepares media item data for return in an XML-RPC object.
|
Basic Example
Outputs something like http://example.net/wp-content/uploads/filename
Use Post Thumbnail as Background Image