wp_rest_attachments_controller-prepare_item_for_response

method