WP_REST_Attachments_Controller::edit_media_item()wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php | Applies edits to a media item and creates a new attachment record. |
wp_update_image_subsizes()wp-admin/includes/image.php | If any of the currently registered image sub-sizes are missing, create them and update the image meta data. |
wp_create_image_subsizes()wp-admin/includes/image.php | Creates image sub-sizes, adds the new data to the image meta sizes array, and updates the image metadata. |
_wp_make_subsizes()wp-admin/includes/image.php | Low-level function to create image sub-sizes. |
WP_Customize_Manager::import_theme_starter_content()wp-includes/class-wp-customize-manager.php | Imports theme starter content into the customized state. |
WP_REST_Attachments_Controller::create_item()wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php | Creates a single attachment. |
WP_Site_Icon::insert_attachment()wp-admin/includes/class-wp-site-icon.php | Inserts an attachment. |
wp_ajax_crop_image()wp-admin/includes/ajax-actions.php | Handles cropping an image via AJAX. |
wp_restore_image()wp-admin/includes/image-edit.php | Restores the metadata for a given attachment. |
wp_save_image()wp-admin/includes/image-edit.php | Saves image to post, along with enqueued changes in $_REQUEST['history'] . |
wp_generate_attachment_metadata()wp-admin/includes/image.php | Generates attachment meta data and create image sub-sizes for images. |
media_handle_upload()wp-admin/includes/media.php | Saves a file submitted from a POST request and create an attachment post for it. |
media_handle_sideload()wp-admin/includes/media.php | Handles a side-loaded file in the same way as an uploaded file is handled by media_handle_upload() . |
edit_post()wp-admin/includes/post.php | Updates an existing post with values provided in $_POST . |
wp_ajax_save_attachment()wp-admin/includes/ajax-actions.php | Handles updating attachment attributes via AJAX. |
Custom_Image_Header::insert_attachment()wp-admin/includes/class-custom-image-header.php | Inserts an attachment and its metadata. |
Custom_Image_Header::step_2()wp-admin/includes/class-custom-image-header.php | Displays second step of custom header image page. |
Custom_Background::handle_upload()wp-admin/includes/class-custom-background.php | Handles an Image upload for the background image. |
wp_xmlrpc_server::mw_newMediaObject()wp-includes/class-wp-xmlrpc-server.php | Uploads a file, following your settings. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.