LLMS_Blocks_Lesson_Progression_Block::get_empty_render_message()

Output a message when no HTML was rendered


Return Return

(string)


Top ↑

Source Source

File: libraries/lifterlms-blocks/includes/blocks/class-llms-blocks-lesson-progression-block.php

	public function get_empty_render_message() {
		$lesson = llms_get_post( get_the_ID() );
		if ( $lesson && is_a( $lesson, 'LLMS_Lesson' ) && $lesson->is_free() ) {
			return '';
		}
		return parent::get_empty_render_message();
	}


Top ↑

Changelog Changelog

Changelog
Version Description
2.0.0 Ensure the queried object is an LLMS_Lesson before checking if it's free.
1.7.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.