Strenghtened the “members only” products purchase prevention.
Updates and Enhancements
Replaced use of the deprecated FILTER_SANITIZE_STRING constant.
Improved compatibility with blockified WooCommerce templates.
Bug Fixes
Fixed an issue with the Divi builder when using the Divi module Woo Product Meta on a non product page.
Developer Notes
New methods added: LLMS_WC_Availability_Buttons::maybe_modify_blockified_add_to_cart_form(), LLMS_WC_Availability_Buttons::maybe_modify_blockified_product_grid_item(), LLMS_WC_Availability_Buttons::maybe_modify_blockified_loop_product_add_to_cart_link().
Added new function llms_wc_is_members_only_wc_product_restricted_for_user, to determine whether a product is only available for members only users and the current use can buy it.
The LifterLMS Core minimum required version has been raised to version 5.9.0.
Added filters llms_wc_user_can_buy_members_only_wc_product and llms_wc_user_not_already_enrolled_into_related_llms_products.
The minimum WordPress supported version is now 5.8, while the minimum WooCommerce supported version has been raised to 6.7.