Function sensei_module_has_lessons
Check if the current module in the modules loop has any lessons. This relies on the global $wp_query. Which will be setup for each module by sensei_the_module(). This function must only be used withing the module lessons loop.
If the loop has not been initiated this function will check if the first module has lessons.
Located at
includes/template-functions.php
boolean
|
bool |