Browse: Home / Functions /

learndash_get_lesson_content_count

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 #

Counts the number of topics, topic quizzes and lesson quizzes, and returns them as an array.


Parameters #

$lesson

(int|WP_Post) (Required) Lesson WP_Post object.

$course_id

(int) (Required) The course ID of the lesson.


Return #

(array) Count of topics and quizzes.


Source #

File: themes/ld30/includes/helpers.php


Changelog #

Changelog
Version Description
3.0.0 Introduced.