apply_filters( 'learndash_lesson_available_from_text', string $message, object $lesson, int $name )
Filters the message markup for when the lesson will be available.
Description #
Parameters #
- $message
-
(string) Markup for lesson available message.
- $lesson
-
(object) Lesson Object.
- $name
-
(int) The timestamp when the lesson will become available.
Source #
File: themes/ld30/templates/modules/messages/lesson-not-available.php
Examples #
Note: Extended code example below not guaranteed, you may need to consult with a developer
<?php
/**
* Example usage for learndash_lesson_available_from_text filter.
*/
add_filter(
'learndash_lesson_available_from_text',
function( $message, $lesson, $name ) {
// May add any custom logic using $message, $lesson, $name.
// Always return $message.
return $message;
},
10,
3
);
Changelog #
| Version | Description |
|---|---|
| 2.2.1 | Introduced. |