* Tweak: Clear cache when order updated.
* Tweak: Clear database cache faster when API Resource no longer exists.
Fix: Typo on API Resources meta box Parent Order link had two # # instead of one #.
* New: If an API Resource is a line item on a WC Subscriptions renewal order, a URL link is displayed leading to the parent order where API Resources are displayed.
* Dev: Added the WC_AM_ENABLE_CACHE constant. To disable caching add define( 'WC_AM_ENABLE_CACHE', false ); to wp-config.php.
* Dev: Template code optimizations.
- api-keys.php
- api-downloads.php
* New: Weekly cleanup of expired API Key activations that are associated with expired API Resources, or associated with API Resources that no longer exists.
* New: Weekly cleanup of expired API Resources, and associated API Key activations.
* New: Weekly cleanup of expired secure download URL hashes from the wc_am_secure_hash table.
* New: Added WC_AM_Background_Events class.
* Fix: Inline style block and Text Domain typos in templates/emails/api-keys-order-complete.php.
* Fix: get_theme_overrides() used wrong path to /templates.
* Tweak: Moved background processing events into the WC_AM_Background_Events class.
* Tweak: Code optimizations.
* Update: Added Amazon S3 regions:
- af-south-1
- ap-south-2
- ap-southeast-3
- ap-southeast-4
- eu-central-2
- eu-south-1
- eu-south-2
- me-central-1
- me-south-1
* Update: Refactored templates/emails/api-keys-order-complete.php to place data in a table, and to add more details.
* Update: Refactored templates/emails/plain/api-keys-order-complete.php to add more details.
* Dev: Added woocommerce-api-manager/includes/wcam-time-functions.php - Functions must be called using the plugins_loaded action hook.
* Dev: New action hooks added:
- wc_am_before_order_partially_refunded
- wc_am_after_order_partially_refunded
- wc_am_before_order_fully_refunded
- wc_am_after_order_fully_refunded
- wc_am_before_refund_deleted
- wc_am_after_refund_deleted
- wc_am_before_remove_order
- wc_am_after_remove_order
- wc_am_before_delete_order
- wc_am_after_delete_order
- wc_am_before_delete_order_item
- wc_am_after_delete_order_item
- wc_am_before_delete_sub_order_item
- wc_am_after_delete_sub_order_item
* Fix: PHP Fatal error: Uncaught Error: Call to undefined function Automattic\\WooCommerce\\Utilities\\wc_get_container().
* Tweak: On Order edit update of Access Expires and/or Activations, process API cache refresh in task queue rather than immediately.
* Tweak: Don't delete API Key activations when WooCommerce Subscription transitions to on-hold then back to active status when payment is processed.
* Tweak: When WooCommerce Subscription changes status delete related Authenticated API cache.
* Tweak: Delete the Authenticated API cache for more events to cover edge cases where results may be stale when fresh results are needed.
* Tweak: Delete API Key activations when WooCommerce Subscription transitions to on-hold status.
* Notice: Declare incompatibility with WooCommerce HPOS until support is verified.
* Tweak: Detect WooCommerce Subscriptions included in WooCommerce core.
* Dev: Added wc_am_new_or_updated_order action hook that returns the order_id of a new or updated order containing API products.
* Dev: Can use WC_AM_API_RESOURCE_DATA_STORE()->get_all_api_resources_for_order_id( $order_id ) to get an array of all API Resource data created from the order line items. Use the plugins_loaded action hook to access the method.