LLMS_Admin_Dashboard::get_screen()

Retrieve an instance of the WP_Screen for the dashboard screen.


Return Return

(WP_Screen|boolean) Returns a WP_Screen object when on the dashboard screen, otherwise returns false.


Top ↑

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;
	}

Top ↑

Changelog Changelog

Changelog
Version Description
7.1.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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