These breaking changes improve the core of CoCart and provides better support for these specific features.
cocart_products_allowed_meta_keys
.numeric
or an array
value allowing to extend support for other product types that are a container of other grouped products.image_src
from a single thumbnail to return all image sizes available. Schema updated to match.Previous Header | New Header |
---|---|
CoCart-API-Cart-Key | Cart-Key |
CoCart-Timestamp | Timestamp |
CoCart-API-Cart-Expiring | Cart-Expiring |
CoCart-API-Cart-Expiration | Cart-Expiration |
Action Hook | Change |
---|---|
cocart_item_restored | Added the request object as the first parameter. |
cocart_item_removed | Added the request object as the first parameter. |
cocart_item_added_updated_in_cart | Moved the request object parameter to be first. |
cocart_item_added_to_cart | Moved the request object parameter to be first. |
cocart_cart_item_quantity
has changed the order of the $cart_item
and $item_key
parameter for consistency with other filters.cart-rest-api-for-woocommerce
to cocart-core
. This affects any translations including custom. If you did a custom translation you will need to rename the text domain to match.
COCART_REMOVE_ALL_DATA
constant set to true. Recommend setting it to false before uninstalling the legacy version from your WordPress dashboard to prevent any issues. Otherwise, use FTP to delete the legacy plugin instead.CoCart_Response
is deprecated. New utility response classes have been created for better utilization.cocart_prepare_money_response()
is replaced with function cocart_format_money()
.cocart_load_cart_override
cocart_load_cart
cocart_merge_cart_content
cocart_cart_loaded_successful_message
cocart_use_cookie_monster
cocart_filter_request_data
cocart_products_ignore_private_meta_keys
cocart_return_default_response
cocart_{$endpoint}_response
CoCart_REST_Cart_V2_Controller
for API v2 now extends a new abstract controller CoCart_REST_Cart_Controller
for the cart.cart/add-item
, cart/add-items
, cart/calculate
now extend CoCart_REST_Cart_V2_Controller
instead of the Cart API v1 controller.