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.


Top ↑

Return Return

(array) Count of topics and quizzes.


Top ↑

Source Source

File: themes/ld30/includes/helpers.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.