LLMS_Admin_Dashboard::get_screen()
Retrieve an instance of the WP_Screen for the dashboard screen.
Contents
Return Return
(WP_Screen|boolean) Returns a WP_Screen object when on the dashboard screen, otherwise returns false.
Source Source
File: includes/admin/class.llms.admin.dashboard.php
public static function get_screen() {
$screen = get_current_screen();
if ( $screen instanceof WP_Screen && 'lifterlms_page_llms-dashboard' === $screen->id ) {
return $screen;
}
return false;
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 7.1.0 | Introduced. |