LLMS_Admin_Dashboard::register_meta_boxes()
Register Dashboard’s meta boxes.
Return Return
(void)
Source Source
File: includes/admin/class.llms.admin.dashboard.php
public static function register_meta_boxes() {
add_meta_box(
'llms_dashboard_quick_links',
__( 'Quick Links', 'lifterlms' ),
array( __CLASS__, 'meta_box' ),
'toplevel_page_llms-dashboard',
'normal',
'default',
array( 'view' => 'quick-links' )
);
add_meta_box(
'llms_dashboard_addons',
__( 'Most Popular Add-ons, Courses, and Resources', 'lifterlms' ),
array( __CLASS__, 'meta_box' ),
'toplevel_page_llms-dashboard',
'normal',
'default',
array( 'view' => 'addons' )
);
add_meta_box(
'llms_dashboard_blog',
__( 'LifterLMS Blog', 'lifterlms' ),
array( __CLASS__, 'meta_box' ),
'toplevel_page_llms-dashboard',
'side',
'default',
array( 'view' => 'blog' )
);
add_meta_box(
'llms_dashboard_podcast',
__( 'LifterLMS Podcast', 'lifterlms' ),
array( __CLASS__, 'meta_box' ),
'toplevel_page_llms-dashboard',
'side',
'default',
array( 'view' => 'podcast' )
);
/**
* Fired after adding the meta boxes on the LifterLMS admin dashboard page.
*
* Third parties can hook here to remove LifterLMS core meta boxes.
*
* @since 7.1.0
*/
do_action( 'llms_dashboard_meta_boxes_added' );
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 7.1.0 | Introduced. |