File: wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php
-
Finalizes an attachment after client-side media processing.
Used by 0 functions | Uses 14 functions | Source: wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php:3247 -
Checks if a given request has access to sideload a file.
Used by 0 functions | Uses 1 function | Source: wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php:2515 -
Validates an image size name, or an array of names sharing a single file.
Used by 1 function | Uses 4 functions | Source: wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php:2535 -
Returns the image size names which name a single file rather than a sub-size.
Used by 2 functions | Uses 0 functions | Source: wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php:2597 -
Validates that uploaded image dimensions are appropriate for the specified image size.
Used by 1 function | Uses 5 functions | Source: wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php:2620 -
Checks whether a dimension exceeds the maximum allowed value.
Used by 1 function | Uses 0 functions | Source: wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php:2740 -
Side-loads a media file without creating a new attachment.
Used by 0 functions | Uses 22 functions | Source: wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php:2752 -
Filters wp_unique_filename during sideloads.
Used by 1 function | Uses 0 functions | Source: wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php:3040 -
Validates the `sub_sizes` file names against what this attachment produced.
Used by 1 function | Uses 3 functions | Source: wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php:3087 -
Returns the file names which a finalize request may store for an attachment.
Used by 2 functions | Uses 3 functions | Source: wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php:3138 -
Returns the uploads subdirectory an attachment is stored in.
Used by 1 function | Uses 4 functions | Source: wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php:3204 -
Sideloads an external image from a URL into the media library.
Used by 1 function | Uses 21 functions | Source: wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php:654 -
Removes filters added for client-side media processing.
Used by 1 function | Uses 1 function | Source: wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php:799 -
Retrieves the query params for the attachments collection.
Used by 1 function | Uses 5 functions | Source: wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php:291 -
Gets the attachment’s original file name.
Used by 1 function | Uses 3 functions | Source: wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php:2462 -
Gets the attachment’s file size in bytes.
Used by 1 function | Uses 4 functions | Source: wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php:2487 -
Prepares attachment links for the request.
Used by 0 functions | Uses 4 functions | Source: wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php:1692 -
Filter whether the server should prevent uploads for image types it doesn’t support. Default true.
Used by 2 functions | Uses 0 functions | Source: wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php:440 -
Determines the featured media based on a request param.
Used by 2 functions | Uses 8 functions | Source: wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php:935 -
Gets the request args for the edit item route.
Used by 1 function | Uses 2 functions | Source: wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php:2269 -
Checks if a given request has access to editing media.
Used by 1 function | Uses 4 functions | Source: wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php:1064 -
Applies edits to a media item and creates a new attachment record.
Used by 0 functions | Uses 26 functions | Source: wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php:1086 -
Filters the meta data for the new image created by editing an existing image.
Used by 1 function | Uses 0 functions | Source: wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php:1368 -
Registers the routes for attachments.
Used by 0 functions | Uses 8 functions | Source: wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php:82 -
Inserts the attachment post in the database. Does not update the attachment meta.
Used by 1 function | Uses 13 functions | Source: wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php:815 -
Performs post-processing on an attachment.
Used by 0 functions | Uses 3 functions | Source: wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php:1031 -
Checks if a given request can perform post-processing on an attachment.
Used by 0 functions | Uses 0 functions | Source: wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php:1052 -
Fires after a single attachment is completely created or updated via the REST API.
Used by 3 functions | Uses 0 functions | Source: wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php:610 -
Determine if uploaded file exceeds space quota on multisite.
Used by 3 functions | Uses 6 functions | Source: wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php:2216 -
Handles an upload via multipart/form-data ($_FILES).
Used by 2 functions | Uses 5 functions | Source: wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php:2126