get_lesson_data( $lessons )

Returns post array of data for lessons associated with a course


Parameters Parameters

(array) (Required)


Top ↑

Return Return

(array)


Top ↑

Source Source

File: includes/llms.template.functions.php

			$GLOBALS['lesson'] = get_lesson( $post );

			llms_setup_course_data( $parent_course );

			return $GLOBALS['lesson'];
		}
	}
}
add_action( 'the_post', 'llms_setup_lesson_data' );

/**
 * Returns post array of data for sections associated with a course
 *
 * @param array
 * @return array
 */
function get_section_data( $sections ) {
	global $post;
	$html = '';
	$args = array(
		'post_type'   => 'section',
		'post_status' => 'publish',
		'nopaging'    => true,
	);

	$sections_query = get_posts( $args );


Top ↑

User Contributed Notes User Contributed Notes

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