llms_setup_question_data( mixed $post )
When the_post is called, put question data into a global.
Contents
Parameters Parameters
- $post
-
(mixed) (Required)
Return Return
Source Source
File: includes/llms.template.functions.php
* * @param mixed $post * @return LLMS_Course */ function llms_setup_lesson_data( $post ) { if ( ! is_admin() ) { if ( 'lesson' == $post->post_type ) { unset( $GLOBALS['lesson'] ); if ( is_int( $post ) ) { $post = get_post( $post ); } if ( empty( $post->post_type ) ) { return; } $courseid = get_post_meta( $post->ID, '_llms_parent_course' ); if ( isset( $courseid ) ) {
Expand full source code Collapse full source code View on GitHub