Learndash_WooCommerce::is_order_product_access_expired( int $order_id, int $product_id )
Check if a course or group associated with an order is already expired based on order paid date.
Description #
Parameters #
- $order_id
-
(int) (Required) WooCommerce order or subscription ID.
- $product_id
-
(int) (Required) LearnDash course or group ID.
Return #
(bool) True if expired, false otherwise.
Source #
File: includes/woocommerce/includes/class-learndash-woocommerce.php
Changelog #
| Version | Description |
|---|---|
| 5.2.0 | Introduced. |