LLMS_Install::create_pages()

Create essential starter pages.


Return Return

(boolean) False on error, true on success.


Top ↑

Source Source

File: includes/class.llms.install.php

	public static function create_pages() {
		/**
		 * Filters the essential pages to be installed.
		 *
		 * @since 3.0.0
		 *
		 * {@see `llms_install_get_pages} filter hook.
		 *
		 * @param array $pages A multidimensional array defining the essential starter pages to be installed.
		 */
		$pages = apply_filters( 'llms_install_create_pages', self::get_pages() );
		foreach ( $pages as $page ) {
			if ( ! llms_create_page( $page['slug'], $page['title'], $page['content'], $page['option'] ) ) {
				return false;
			}
		}
		return true;
	}


Top ↑

Changelog Changelog

Changelog
Version Description
7.3.0 Using $this->get_pages() method now.
3.24.0 Unknown.
1.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.