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 #
- $lesson
-
(int|WP_Post) (Optional) Lesson
WP_Post
object or post ID. Default to global $post.Default value: null
- $has_access
-
(int) (Optional) Whether the lesson is accessible or not.
Default value: false
- $topics
-
(array) (Optional) Topics within the Lesson.
Default value: array()
- $quizzes
-
(array) (Optional) Quizzes within the lesson.
Default value: array()
Return #
(string|void) Lesson row CSS class names.
Source #
Changelog #
Version | Description |
---|---|
3.0.0 | Introduced. |