includes/managers/class-fs-admin-menu-manager.php
private function find_top_level_menu() {
			global $menu;

			$position   = - 1;
			$found_menu = false;

			$menu_slug = $this->get_raw_slug();

			$hook_name = get_plugin_page_hookname( $menu_slug, '' );
			foreach ( $menu as $pos => $m ) {
				if ( $menu_slug === $m[2] ) {
					$position   = $pos;
					$found_menu = $m;
					break;
				}
			}

			if ( false === $found_menu ) {
				return false;
			}

			return array(
				'menu'      => $found_menu,
				'position'  => $position,
				'hook_name' => $hook_name
			);
		}
private function find_top_level_menu() {
			global $menu;

			$position   = - 1;
			$found_menu = false;

			$menu_slug = $this->get_raw_slug();

			$hook_name = get_plugin_page_hookname( $menu_slug, '' );
			foreach ( $menu as $pos => $m ) {
				if ( $menu_slug === $m[2] ) {
					$position   = $pos;
					$found_menu = $m;
					break;
				}
			}

			if ( false === $found_menu ) {
				return false;
			}

			return array(
				'menu'      => $found_menu,
				'position'  => $position,
				'hook_name' => $hook_name
			);
		}
private function find_top_level_menu ( ) { global $ menu ; $ position = - 1 ; $ found_menu = false ; $ menu_slug = $ this -> get_raw_slug ( ) ; $ hook_name = get_plugin_page_hookname ( $ menu_slug , '' ) ; foreach ( $ menu as $ pos => $ m ) { if ( $ menu_slug === $ m [ 2 ] ) { $ position = $ pos ; $ found_menu = $ m ; break ; } } if ( false === $ found_menu ) { return false ; } return array ( 'menu' => $ found_menu , 'position' => $ position , 'hook_name' => $ hook_name ) ; }
Find plugin's admin dashboard main menu item.

@author Vova Feldman (@svovaf)
@since  1.0.2

@return string[]|false
Find plugin s admin dashboard main menu item .