Browse: Home / Functions /


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 #


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


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

Return #

(array) Count of topics and quizzes.

Source #

File: themes/ld30/includes/helpers.php

Changelog #

Version Description
3.0.0 Introduced.