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
} } } 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, );
Expand full source code Collapse full source code View on GitHub