get_media_states()wp-admin/includes/template.php | Retrieves an array of media states from an attachment.
|
wp_get_original_image_url()wp-includes/post.php | Retrieves the URL to an original attachment image.
|
wp_media_personal_data_exporter()wp-includes/media.php | Finds and exports attachments associated with an email address.
|
WP_Widget_Media_Audio::render_media()wp-includes/widgets/class-wp-widget-media-audio.php | Render the media on the frontend.
|
WP_Widget_Media_Video::render_media()wp-includes/widgets/class-wp-widget-media-video.php | Render the media on the frontend.
|
WP_Widget_Media_Image::render_media()wp-includes/widgets/class-wp-widget-media-image.php | Render the media on the frontend.
|
WP_Customize_Manager::import_theme_starter_content()wp-includes/class-wp-customize-manager.php | Imports theme starter content into the customized state.
|
get_header_video_url()wp-includes/theme.php | Retrieves header video URL for custom header.
|
WP_REST_Attachments_Controller::prepare_item_for_response()wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php | Prepares a single attachment output for response.
|
WP_Site_Icon::create_attachment_object()wp-admin/includes/class-wp-site-icon.php | Creates an attachment ‘object’.
|
wp_ajax_crop_image()wp-admin/includes/ajax-actions.php | Handles cropping an image via AJAX.
|
export_wp()wp-admin/includes/export.php | Generates the WXR export file for download.
|
wp_save_image()wp-admin/includes/image-edit.php | Saves image to post, along with enqueued changes in $_REQUEST['history'] .
|
_load_image_to_edit_path()wp-admin/includes/image.php | Retrieves the path or URL of an attachment’s attached file.
|
edit_form_image_editor()wp-admin/includes/media.php | Displays the image and editor in the post editor
|
attachment_submitbox_metadata()wp-admin/includes/media.php | Displays non-editable attachment metadata in the publish meta box.
|
get_attachment_fields_to_edit()wp-admin/includes/media.php | Retrieves the attachment fields to edit form fields.
|
media_sideload_image()wp-admin/includes/media.php | Downloads an image from the specified URL, saves it as an attachment, and optionally attaches it to a post.
|
image_link_input_fields()wp-admin/includes/media.php | Retrieves HTML for the Link URL buttons with the default link type as specified.
|
WP_Media_List_Table::_get_row_actions()wp-admin/includes/class-wp-media-list-table.php | |
Custom_Image_Header::create_attachment_object()wp-admin/includes/class-custom-image-header.php | Creates an attachment ‘object’.
|
Custom_Image_Header::ajax_header_crop()wp-admin/includes/class-custom-image-header.php | Gets attachment uploaded by Media Manager, crops it, then saves it as a new object. Returns JSON-encoded object details.
|
Custom_Image_Header::step_3()wp-admin/includes/class-custom-image-header.php | Displays third step of custom header image page.
|
_delete_attachment_theme_mod()wp-includes/theme.php | Checks an attachment being deleted to see if it’s a header or background image.
|
get_uploaded_header_images()wp-includes/theme.php | Gets the header images uploaded for the active theme.
|
get_the_attachment_link()wp-includes/deprecated.php | Retrieve HTML content of attachment image with link.
|
get_attachment_icon_src()wp-includes/deprecated.php | Retrieve icon URL and Path.
|
wp_get_attachment_link()wp-includes/post-template.php | Retrieves an attachment page link using an image or icon, if possible.
|
prepend_attachment()wp-includes/post-template.php | Wraps attachment in paragraph tag before content.
|
get_post_galleries()wp-includes/media.php | Retrieves galleries from the passed post’s content.
|
wp_prepare_attachment_for_js()wp-includes/media.php | Prepares an attachment post object for JS, where it is expected to be JSON-encoded and fit into an Attachment model.
|
wp_video_shortcode()wp-includes/media.php | Builds the Video shortcode output.
|
wp_playlist_shortcode()wp-includes/media.php | Builds the Playlist shortcode output.
|
wp_audio_shortcode()wp-includes/media.php | Builds the Audio shortcode output.
|
image_get_intermediate_size()wp-includes/media.php | Retrieves the image’s intermediate size (resized) path, width, and height.
|
image_downsize()wp-includes/media.php | Scales an image to fit a particular size (such as ‘thumb’ or ‘medium’).
|
redirect_canonical()wp-includes/canonical.php | Redirects incoming links to the proper URL based on the site url.
|
wp_xmlrpc_server::_prepare_media_item()wp-includes/class-wp-xmlrpc-server.php | 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