apply_filters( 'learndash_lesson_row_atts', string $attribute )
Filters lesson row attributes. Used while displaying lesson lists in a course.
Description #
Parameters #
- $attribute
-
(string) Lesson row attribute. The value is data-ld-tooltip if a user does not have access to the course otherwise an empty string.
Source #
Examples #
Note: Extended code example below not guaranteed, you may need to consult with a developer
<?php /** * Example usage for learndash_lesson_row_atts filter. */ add_filter( 'learndash_lesson_row_atts', function( $attribute ) { // May add any custom logic using $attribute. // Always return $attribute. return $attribute; } );
Changelog #
Version | Description |
---|---|
3.0.0 | Introduced. |