New and updated in 2.5.0
-
functionmedia_upload_header()
Outputs the legacy media upload header.
-
functionmedia_upload_form()
Outputs the legacy media upload form.
-
functionmedia_upload_form_handler()
Handles form submissions for the legacy media uploader.
-
Filters the attachment fields to be saved.
-
Filters the HTML markup for a media item sent to the editor.
-
functionwp_media_upload_handler()
Handles the process of uploading media.
-
functionmedia_upload_gallery()
Retrieves the legacy media uploader form in an iframe.
-
functionmedia_upload_library()
Retrieves the legacy media library form in an iframe.
-
Retrieves the image attachment fields to edit form fields.
-
Retrieves the single non-image attachment fields to edit form fields.
-
Was used to filter input from media_upload_form_handler() and to assign a default post_title from the file name if none supplied.
-
functionmedia_buttons()
Adds the media button to the editor.
-
Filters the legacy (pre-3.5.0) media buttons.
-
functionthe_media_upload_tabs()
Outputs the legacy media upload tabs UI.
-
functionget_image_send_to_editor()
Retrieves the image HTML to send to the editor.
-
Filters the image HTML markup to send to the editor when inserting an image.
-
functionmedia_send_to_editor()
Adds image HTML to editor.
-
functionmedia_handle_upload()
Saves a file submitted from a POST request and create an attachment post for it.
-
functionwp_iframe()
Outputs the iframe to display the media upload page.
-
Fires in the admin header for each specific form tab in the legacy (pre-3.5.0) media upload popup.
-
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.
-
functionget_sample_permalink_html()
Returns the HTML of the sample permalink slug editor.
-
functionwp_check_post_lock()
Determines whether the post is currently being edited by another user.
-
functionwp_set_post_lock()
Marks the post as currently being edited by the current user.
-
functionget_available_post_statuses()
Returns all the possible statuses for a post type.
-
functionwp_edit_posts_query()
Runs the query to fetch the posts for listing on the edit posts page.
-
functionget_available_post_mime_types()
Gets all available post MIME types for a given post type.
-
functionwp_edit_attachments_query()
Executes a query for attachments. An array of WP_Query arguments can be passed in, which will override the arguments set by this function.