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
function lifterlms_get_content( $args ) { llms_get_template( 'content-single-question.php', $args ); } } /** * When the_post is called, put course data into a global. * * @param mixed $post * @return LLMS_Course */ function llms_setup_course_data( $post ) { if ( ! is_admin() ) { if ( $post && 'course' === $post->post_type ) { unset( $GLOBALS['course'] );
Expand full source code Collapse full source code View on GitHub