lifterlms_page_title( $echo = true )
Contents
Source Source
File: includes/llms.template.functions.php
* * @param array * @return array */ function get_lesson_data( $lessons ) { global $post; $html = ''; $args = array( 'post_type' => 'lesson', 'post_status' => 'publish', 'nopaging' => true, ); $lessons_query = get_posts( $args ); $array = array(); foreach ( $lessons as $key => $value ) : foreach ( $lessons_query as $lesson ) : if ( $value == $lesson->ID ) { $array[ $value ] = $lesson; } endforeach; endforeach; return $array; } /** * Get Page Title * * @param boolean $echo [echo string?] * @return string $page_title [page title]
Expand full source code Collapse full source code View on GitHub