LLMS_Admin_Post_Table_Pages::__construct()
Constructor
Return Return
(void)
Source Source
File: includes/admin/post-types/post-tables/class.llms.admin.post.table.pages.php
public function __construct() {
if ( isset( $_GET['post_type'] ) && 'page' === $_GET['post_type'] ) {
$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;
}
}
add_filter( 'display_post_states', array( $this, 'post_states' ), 10, 2 );
}
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 3.0.0 | Introduced. |