LLMS_Blocks_Lesson_Progression_Block::get_empty_render_message()
Output a message when no HTML was rendered
Return Return
(string)
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(); }
Expand full source code Collapse full source code View on GitHub
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. |