Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
LLMS_Admin_Builder::get_existing_posts( int $course_id, string $post_type = '', string $search_term = '', int $page = 1 )
Retrieve a list of lessons the current user is allowed to clone/attach
Description Description
Used for ajax searching to add existing lessons.
Parameters Parameters
- $course_id
-
(Required) WP Post ID of the course
- $post_type
-
(Optional) Search specific post type(s). By default searches for all post types.
Default value: ''
- $search_term
-
(Optional) Search term (searches post_title). Default is empty string.
Default value: ''
- $page
-
(Optional) Used when paginating search results. Default is
1
.Default value: 1
Return Return
(array)
Source Source
File: includes/admin/class.llms.admin.builder.php
Changelog Changelog
Version | Description |
---|---|
3.16.12 | Unknown. |
3.14.8 | Introduced. |