File: wp-admin/includes/media.php
-
Retrieves the post non-image attachment fields to edit form fields.
-
functionmedia_sideload_image()
Downloads an image from the specified URL, saves it as an attachment, and optionally attaches it to a post.
-
functionmedia_upload_gallery()
Retrieves the legacy media uploader form in an iframe.
-
functionmedia_upload_library()
Retrieves the legacy media library form in an iframe.
-
functionimage_align_input_fields()
Retrieves HTML for the image alignment radio buttons with the specified one checked.
-
Filters the upload iframe source URL for a specific media type.
-
functionmedia_handle_upload()
Saves a file submitted from a POST request and create an attachment post for it.
-
functionmedia_handle_sideload()
Handles a side-loaded file in the same way as an uploaded file is handled by media_handle_upload().
-
functionwp_iframe()
Outputs the iframe to display the media upload page.
-
functionthe_media_upload_tabs()
Outputs the legacy media upload tabs UI.
-
Fires when admin styles enqueued for the legacy (pre-3.5.0) media upload popup are printed.
-
functionget_image_send_to_editor()
Retrieves the image HTML to send to the editor.
-
Fires when admin scripts enqueued for the legacy (pre-3.5.0) media upload popup are printed.
-
Filters the image HTML markup to send to the editor when inserting an image.
-
Fires when scripts enqueued for the admin header for the legacy (pre-3.5.0) media upload popup are printed.
-
functionimage_add_caption()
Adds image shortcode with caption to editor.
-
Fires in the admin header for each specific form tab in the legacy (pre-3.5.0) media upload popup.
-
hookdisable_captions
Filters whether to disable captions.
-
functionmedia_buttons()
Adds the media button to the editor.
-
Filters the image HTML markup including the caption shortcode.
-
Filters the legacy (pre-3.5.0) media buttons.
-
function_cleanup_image_add_caption()
Private preg_replace callback used in image_add_caption().
-
functionget_upload_iframe_src()
Retrieves the upload iframe source URL.
-
functionmedia_send_to_editor()
Adds image HTML to editor.
-
functionmedia_upload_tabs()
Defines the default media upload tabs.
-
Filters the available tabs in the legacy (pre-3.5.0) media popup.
-
functionupdate_gallery_tab()
Adds the gallery tab back to the tabs array if post has image attachments.