ClassicPress logo
Skip to content
Filter by type:
Browse: Home / wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php

rest_prepare_attachment

Filter Hook: Filters an attachment returned from the REST API.

Source: wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php:388

Used by 1 function | Uses 0 functions

WP_REST_Attachments_Controller::check_upload_size()

Method: Determine if uploaded file exceeds space quota on multisite.

Source: wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php:786

Used by 2 functions | Uses 6 functions

WP_REST_Attachments_Controller::get_media_types()

Method: Retrieves the supported media types.

Source: wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php:760

Used by 2 functions | Uses 1 function

WP_REST_Attachments_Controller::upload_from_file()

Method: Handles an upload via multipart/form-data ($_FILES).

Source: wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php:708

Used by 1 function | Uses 5 functions

WP_REST_Attachments_Controller::validate_user_can_query_private_statuses()

Method: Validates whether the user can query private statuses.

Source: wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php:691

Used by 0 functions | Uses 0 functions

WP_REST_Attachments_Controller::get_collection_params()

Method: Retrieves the query params for collections of attachments.

Source: wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php:659

Used by 0 functions | Uses 3 functions

WP_REST_Attachments_Controller::get_filename_from_disposition()

Method: Parses filename from a Content-Disposition header value.

Source: wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php:611

Used by 1 function | Uses 0 functions

WP_REST_Attachments_Controller::upload_from_data()

Method: Handles an upload via raw POST data.

Source: wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php:507

Used by 1 function | Uses 7 functions

WP_REST_Attachments_Controller::get_item_schema()

Method: Retrieves the attachment’s schema, conforming to JSON Schema.

Source: wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php:398

Used by 0 functions | Uses 2 functions

WP_REST_Attachments_Controller

Class: Core controller used to access attachments via the REST API.

Source: wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php:17

Used by 0 functions | Uses 1 function
1 2 Next »
ClassicPress Documentation • Made with ClassicPress
Privacy Policy