Skip to content

Commit a7909f9

Browse files
author
Obi Juan
committed
Adds support for bypassing the specfiic date drip option.
1 parent 59aed9b commit a7909f9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bypass-drip-content-for-learndash.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,8 @@ private function load_dependencies() {
179179
*/
180180
private function init_hooks() {
181181
// Hook into LearnDash's drip content checks
182-
//add_filter('learndash_content_drip_access', array($this, 'maybe_bypass_drip_content'), 10, 3);
183182
add_filter('ld_lesson_access_from__visible_after', array($this, 'maybe_bypass_lesson_timer'), 10, 3);
183+
add_filter('ld_lesson_access_from__visible_after_specific_date', array($this, 'maybe_bypass_lesson_timer'), 10, 3);
184184
add_action('plugins_loaded', array($this, 'on_plugins_loaded'));
185185
}
186186

0 commit comments

Comments
 (0)