WP_REST_Attachments_Controller::sideload_item()wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php | Side-loads a media file without creating a new attachment.
|
WP_REST_Attachments_Controller::get_attachment_filename()wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php | Gets the attachment’s original file name.
|
WP_REST_Attachments_Controller::get_attachment_filesize()wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php | Gets the attachment’s file size in bytes.
|
wp_get_original_image_path()wp-includes/post.php | Retrieves the path to an uploaded image file.
|
WP_Customize_Manager::_validate_header_video()wp-includes/class-wp-customize-manager.php | Callback for validating the header_video value.
|
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::prepare_item_for_response()wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php | Prepares a single attachment output for response.
|
WP_Media_List_Table::column_title()wp-admin/includes/class-wp-media-list-table.php | Handles the title column output.
|
wp_attachment_is()wp-includes/post.php | Verifies an attachment is of a given type.
|
File_Upload_Upgrader::__construct()wp-admin/includes/class-file-upload-upgrader.php | Construct the upgrader for a form.
|
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'].
|
_copy_image_file()wp-admin/includes/image.php | Copies an existing image file.
|
_load_image_to_edit_path()wp-admin/includes/image.php | Retrieves the path or URL of an attachment’s attached file.
|
wp_crop_image()wp-admin/includes/image.php | Crops an image to a given size.
|
attachment_submitbox_metadata()wp-admin/includes/media.php | Displays non-editable attachment metadata in the publish meta box.
|
get_media_item()wp-admin/includes/media.php | Retrieves HTML form for modifying the image attachment.
|
Custom_Image_Header::step_2()wp-admin/includes/class-custom-image-header.php | Displays second step of custom header image page.
|
Custom_Image_Header::step_3()wp-admin/includes/class-custom-image-header.php | Displays third step of custom header image page.
|
wp_load_image()wp-includes/deprecated.php | Load an image from a string, if PHP supports it.
|
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.
|
wp_maybe_generate_attachment_metadata()wp-includes/media.php | Maybe attempts to generate attachment metadata, if missing.
|
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.
|
get_attachment_taxonomies()wp-includes/media.php | Retrieves taxonomies attached to given the attachment.
|
image_downsize()wp-includes/media.php | Scales an image to fit a particular size (such as ‘thumb’ or ‘medium’).
|
wp_mime_type_icon()wp-includes/post.php | Retrieves the icon for a MIME type or attachment.
|
wp_get_attachment_thumb_file()wp-includes/deprecated.php | Retrieves thumbnail for an attachment.
|
wp_delete_attachment()wp-includes/post.php | Trashes or deletes an attachment.
|
Examples