Warning: This method has been deprecated.
LLMS_AJAX::get_lessons()
Return array of lessons (id => name)
Description Description
Return Return
(array)
Source Source
File: includes/class.llms.ajax.php
public function get_lessons() { llms_deprecated_function( 'LLMS_AJAX::get_lessons()', '3.13.0' ); $args = array( 'posts_per_page' => -1, 'post_type' => 'lesson', 'nopaging' => true, 'meta_query' => array( array( 'key' => '_llms_parent_section', 'compare' => 'NOT EXISTS', ), ), ); $postslist = get_posts( $args ); if ( ! empty( $postslist ) ) { foreach ( $postslist as $key => $value ) { $value->edit_url = get_edit_post_link( $value->ID, false ); } echo json_encode( $postslist ); } die(); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.13.0 | This method has been deprecated. |
?? | Introduced. |