learndash_get_lesson_content_count( int|WP_Post $lesson, int $course_id )
Gets the count of the number of topics and quizzes for a lesson.
Description Description
Counts the number of topics, topic quizzes and lesson quizzes, and returns them as an array.
Parameters Parameters
- $lesson
-
(Required) Lesson
WP_Post
object. - $course_id
-
(Required) The course ID of the lesson.
Return Return
(array) Count of topics and quizzes.
Source Source
File: themes/ld30/includes/helpers.php
Changelog Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |