- New: The
edd_aa_download_limit
shortcode has been registered to allow store owners to easily show customers how many downloads they have remaining, when downloads are limited. - Improvement: The logic for checking whether a pass can access a download has been extracted into a class for improved logic and readability.
- Improvement: A new function,
edd_all_access_valid_order_statuses
, has been registered. - Improvement: The All Access customer details header has been updated to match EDD core.
- Fix: If the site’s list of All Access products was deleted, the list is automatically regenerated.
- Fix: Passes now grant access to downloads in child categories when the parent category is enabled.
- Fix: If a pass’ status was invalid, it could throw a fatal error when viewing the customer details in the admin.
- Fix: Commissions styles/scripts are conditionally enqueued.
- Fix: Accessing a single price All Access product via ajax could throw a PHP notice.
- Fix: A PHP notice could occur if a payment object could not be retrieved for a pass.
- Fix: Only show upcoming access periods if the dates can be calculated.
- Refactor: The
AllAccessProduct
class has been introduced to consistently retrieve product data. - Dev: Refactor how the plugin is loaded and checks system requirements.
- Dev: Minimum PHP version is 5.6.
- Dev: A new function has been registered for retrieving the customer metadata for All Access passes.
- Dev: EDD 3.0 – Partially refunded orders are included in valid order statuses.
- Dev: EDD 3.0 – Unit tests have been updated for EDD 3.0 compatibility.
- Dev: EDD 3.0 – Order dates have been updated to be consistent with EDD 3.0.