Skip to content

Instantly share code, notes, and snippets.

@contemplate
Created August 2, 2022 18:42
Show Gist options
  • Select an option

  • Save contemplate/b6b46637449dee2189339a5d297229f9 to your computer and use it in GitHub Desktop.

Select an option

Save contemplate/b6b46637449dee2189339a5d297229f9 to your computer and use it in GitHub Desktop.
Disable LearnDash Video Progression
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;
}
@contemplate
Copy link
Copy Markdown
Author

When using the [ld_video] shortcode in Elementor Theme Builder but don't actually want Video Progression enabled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment