llms_get_add_ons( $use_cache = true )
Retrieve available products from the LifterLMS.com API
Return Return
(array) Array of LifterLMS add-on data from the LifterLMS.com products api.
- 'categories'
(array) Associative array of add-on category information, mapping ID to Title. - 'items'
(array[]) List of add-ons definition arrays.
Source Source
File: includes/admin/llms.functions.admin.php
wp_update_post( $page_data ); } else { $page_data = array( 'post_status' => 'publish', 'post_type' => 'page', 'post_author' => get_current_user_id() ? get_current_user_id() : 1, 'post_name' => $slug, 'post_title' => wp_strip_all_tags( $title ), 'post_content' => $content, 'comment_status' => 'closed', ); $page_id = wp_insert_post( wp_slash( /** * Filters the page data passed to create a page. * * The output of this filter will be slashed via `wp_slash` prior * to being passed to `wp_insert_post` to prevent slashes from * being stripped from the page title. *
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.22.0 | Introduced. |