learndash_lesson_available_from_text

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 #

 <?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
);