Browse: Home / Hooks /

learndash_woocommerce_reset_subscription_course_access_from

apply_filters( 'learndash_woocommerce_reset_subscription_course_access_from',  bool $reset,  int $course_id,  WC_Subscription $subscription )

Filters whether to reset the course access start date when a subscription is activated.


Description #

Defaults to true when this subscription has not already granted the course, or the student has no start date.


Parameters #

$reset

(bool) True to reset|false otherwise.

$course_id

(int) Course ID.

$subscription

(WC_Subscription) WC_Subscription object.


Return #

(bool) True to reset|false otherwise.


Source #

File: includes/woocommerce/includes/class-learndash-woocommerce.php


Changelog #

Changelog
Version Description
5.2.0 Introduced.