Uses
Uses | Description |
---|---|
wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php: WP_REST_Attachments_Controller::insert_attachment() | Inserts the attachment post in the database. Does not update the attachment meta. |
wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php: rest_after_insert_attachment | Fires after a single attachment is completely created or updated via the REST API. |
wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php: WP_REST_Attachments_Controller::get_item_schema() | Retrieves the attachment’s schema, conforming to JSON Schema. |
wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php: WP_REST_Attachments_Controller::prepare_item_for_response() | Prepares a single attachment output for response. |
wp-includes/rest-api.php: rest_ensure_response() | Ensures a REST response is a response object (for consistency). |
wp-includes/rest-api.php: rest_url() | Retrieves the URL to a REST endpoint. |
wp-admin/includes/image.php: wp_generate_attachment_metadata() | Generate attachment meta data and create image sub-sizes for images. |
wp-includes/l10n.php: __() | Retrieve the translation of $text. |
wp-includes/formatting.php: sanitize_text_field() | Sanitizes a string from user input or from the database. |
wp-includes/plugin.php: do_action() | Execute functions hooked on a specific action hook. |
wp-includes/post.php: wp_update_attachment_metadata() | Updates metadata for an attachment. |
wp-includes/post.php: update_post_meta() | Updates a post meta field based on the given post ID. |
wp-includes/post.php: get_post_type() | Retrieves the post type of the current post or of a given post. |
wp-includes/post.php: get_post() | Retrieves post data given a post ID or post object. |
wp-includes/load.php: is_wp_error() | Check whether variable is a WordPress Error. |
wp-includes/class-wp-error.php: WP_Error::__construct() | Initialize the error. |