File: wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php
-
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:1819 -
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:1843 -
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:1092 -
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:162 -
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:422 -
Gets the request args for the edit item route.
Used by 1 function | Uses 1 function | Source: wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php:1626 -
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:851 -
Checks if a given request has access to editing media.
Used by 0 functions | Uses 4 functions | Source: wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php:551 -
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:572 -
Registers the routes for attachments.
Used by 0 functions | Uses 4 functions | Source: wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php:34 -
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:302 -
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:518 -
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:539 -
Fires after a single attachment is completely created or updated via the REST API.
Used by 2 functions | Uses 0 functions | Source: wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php:264 -
Determine if uploaded file exceeds space quota on multisite.
Used by 2 functions | Uses 6 functions | Source: wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php:1573 -
Handles an upload via multipart/form-data ($_FILES).
Used by 1 function | Uses 5 functions | Source: wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php:1483 -
Retrieves the supported media types.
Used by 2 functions | Uses 1 function | Source: wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php:1547 -
Filters an attachment returned from the REST API.
Used by 1 function | Uses 0 functions | Source: wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php:1081 -
Retrieves the attachment’s schema, conforming to JSON Schema.
Used by 1 function | Uses 2 functions | Source: wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php:1118 -
Handles an upload via raw POST data.
Used by 1 function | Uses 7 functions | Source: wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php:1263 -
Parses filename from a Content-Disposition header value.
Used by 1 function | Uses 0 functions | Source: wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php:1395 -
Retrieves the query params for collections of attachments.
Used by 0 functions | Uses 3 functions | Source: wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php:1444 -
Prepares a single attachment output for response.
Used by 4 functions | Uses 15 functions | Source: wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php:908 -
Creates a single attachment.
Used by 0 functions | Uses 18 functions | Source: wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php:199 -
Fires after a single attachment is created or updated via the REST API.
Used by 1 function | Uses 0 functions | Source: wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php:405 -
Updates a single attachment.
Used by 0 functions | Uses 12 functions | Source: wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php:458 -
Prepares a single attachment for create or update.
Used by 2 functions | Uses 1 function | Source: wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php:870 -
Core controller used to access attachments via the REST API.
Used by 0 functions | Uses 1 function | Source: wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php:17 -
Determines the allowed query_vars for a get_items() response and prepares for WP_Query.
Used by 0 functions | Uses 3 functions | Source: wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php:79 -
Checks if a given request has access to create an attachment.
Used by 0 functions | Uses 8 functions | Source: wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php:126