Warning: This method has been deprecated.
LLMS_AJAX::get_all_posts()
Return array of courses (id => name)
Description Description
Return Return
(array)
Source Source
File: includes/class.llms.ajax.php
public function get_all_posts() { llms_deprecated_function( 'LLMS_AJAX::get_all_posts()', '3.13.0' ); $post_type = llms_clean( $_REQUEST['post_type'] ); $args = array( 'post_type' => $post_type, 'nopaging' => true, 'post_status' => 'publish', ); $postslist = get_posts( $args ); 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. |