learndash_lesson_row_class

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

Ouputs 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


Return #

(string|void) Lesson row CSS class names.


Source #

File: themes/ld30/includes/helpers.php


Changelog #

Changelog
Version Description
3.0.0 Introduced.