Learndash_Course_Video
Class for handling the LearnDash Video Progression.
Description #
Source #
Changelog #
Version | Description |
---|---|
2.4.0 | Introduced. |
Methods #
- __construct — LearnDash Vide Progress constructor.
- action_wp_footer — Add JS logic to the page footer.
- add_controls_hiding_styles — Adds CSS styles to hide video controls for a tag. It's a hacky way, but it was here before, so I decided not to change it for now.
- add_video_to_content — Hook into the LearnDash template logic to insert the Video Progression output
- build_video_cookie_key — Build unique video progress cookie key. This is used to track the video state in the user's browser.
- check_video_complete — Utility class method to allow add-hoc checks on video complete.
- filter_post_args
- get_instance — Get instance.
- get_nonce_slug — Utility function to get the nonce slug.
- is_video_cookie_complete — Checks if the video cookie 'video_state' is complete.
- learndash_completion_redirect — Redirect after Mark Complete is performed. — deprecated
- map_bunny_playlist_url_into_mp4 — Maps Bunny CDN playlist URL into MP4 URL.
- process_mark_complete — Handle Mark Complete on Lesson or Topic with Video Progress enabled. — deprecated
- replace_bunny_playlist_url_with_mp4_url — Replaces Bunny CDN playlist URL with MP4 URL in the lesson_video_url setting.
- save_post_data