Created
August 2, 2022 18:42
-
-
Save contemplate/b6b46637449dee2189339a5d297229f9 to your computer and use it in GitHub Desktop.
Disable LearnDash Video Progression
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| add_filter('learndash_user_can_bypass', 'custom_bypass_video_progression', 10, 4); | |
| function custom_bypass_video_progression( $can_bypass, $user_id, $context, $args ){ | |
| if( $context == 'learndash_video_progression'){ | |
| $can_bypass = true; | |
| } | |
| return $can_bypass; | |
| } |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When using the [ld_video] shortcode in Elementor Theme Builder but don't actually want Video Progression enabled.