LLMS_Admin_Post_Table_Pages::populate_pages()


Source Source

File: includes/admin/post-types/post-tables/class.llms.admin.post.table.pages.php

	public function populate_pages() {
		$pages = array(
			'checkout'    => __( 'LifterLMS Checkout', 'lifterlms' ),
			'courses'     => __( 'LifterLMS Course Catalog', 'lifterlms' ),
			'memberships' => __( 'LifterLMS Memberships Catalog', 'lifterlms' ),
			'myaccount'   => __( 'LifterLMS Student Dashboard', 'lifterlms' ),
		);

		foreach ( $pages as $key => $name ) {
			$id = llms_get_page_id( $key );
			if ( $id ) {

				$this->pages[ $id ] = $name;

			}
		}
	}


Top ↑

User Contributed Notes User Contributed Notes

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