llms_setup_product_data( mixed $post )
When the_post is called, put course data into a global.
Contents
Parameters Parameters
- $post
-
(mixed) (Required)
Return Return
Source Source
File: includes/llms.template.functions.php
$GLOBALS['course'] = new LLMS_Course( $post ); return $GLOBALS['course']; } } } add_action( 'the_post', 'llms_setup_course_data' ); /** * When the_post is called, put lesson data into a global. * * @param mixed $post * @return LLMS_Course */ function llms_setup_lesson_data( $post ) { if ( ! is_admin() ) {
Expand full source code Collapse full source code View on GitHub