Warning: This method has been deprecated.
LLMS_AJAX::get_associated_lessons()
Return array of lessons (id => name)
Description Description
Return Return
(array)
Source Source
File: includes/class.llms.ajax.php
public function get_associated_lessons() { llms_deprecated_function( 'LLMS_AJAX::get_associated_lessons()', '3.13.0' ); $parent_section = $_REQUEST['section_id']; $args = array( 'posts_per_page' => -1, 'post_type' => 'lesson', 'nopaging' => true, 'post_status' => 'publish', 'meta_query' => array( array( 'key' => '_llms_parent_section', 'value' => $parent_section, ), ), ); $postslist = get_posts( $args ); foreach ( $postslist as $key => $value ) { $value->edit_url = get_edit_post_link( $value->ID ); } 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. |
User Contributed Notes User Contributed Notes
Permalink: