LLMS_Install::create_pages()
Create essential starter pages
Return Return
(boolean) False on error, true on success.
Source Source
File: includes/class.llms.install.php
public static function create_pages() { $pages = apply_filters( 'llms_install_create_pages', array( array( 'content' => '', 'option' => 'lifterlms_shop_page_id', 'slug' => 'courses', 'title' => __( 'Course Catalog', 'lifterlms' ), ), array( 'content' => '', 'option' => 'lifterlms_memberships_page_id', 'slug' => 'memberships', 'title' => __( 'Membership Catalog', 'lifterlms' ), ), array( 'content' => '[lifterlms_checkout]', 'option' => 'lifterlms_checkout_page_id', 'slug' => 'purchase', 'title' => __( 'Purchase', 'lifterlms' ), ), array( 'content' => '[lifterlms_my_account]', 'option' => 'lifterlms_myaccount_page_id', 'slug' => 'dashboard', 'title' => __( 'Dashboard', 'lifterlms' ), ), ) ); foreach ( $pages as $page ) { if ( ! llms_create_page( $page['slug'], $page['title'], $page['content'], $page['option'] ) ) { return false; } } return true; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.24.0 | Unknown. |
1.0.0 | Introduced. |