Browse: Home / Functions /


learndash_lesson_row_class( int|WP_Post $lesson = null,  int $has_access = false,  array $topics = array(),  array $quizzes = array() )

Outputs lesson row CSS class.

Description #

Filterable string of class names populated based on lesson status and attributes.

Parameters #


(int|WP_Post) (Optional) Lesson WP_Post object or post ID. Default to global $post.

Default value: null


(int) (Optional) Whether the lesson is accessible or not.

Default value: false


(array) (Optional) Topics within the Lesson.

Default value: array()


(array) (Optional) Quizzes within the lesson.

Default value: array()

Return #

(string|void) Lesson row CSS class names.

Source #

File: themes/ld30/includes/helpers.php

Changelog #

Version Description
3.0.0 Introduced.