includes/managers/class-fs-admin-menu-manager.php
function add_page_and_update(
            $page_title,
            $menu_title,
            $capability,
            $menu_slug,
            $function = '',
            $icon_url = '',
            $position = null
        ) {
            $this->_menu_slug           = $menu_slug;
            $this->_is_top_level        = true;
            $this->_menu_exists         = true;
            $this->_network_menu_exists = true;

            return self::add_page(
                $page_title,
                $menu_title,
                $capability,
                $menu_slug,
                $function,
                $icon_url,
                $position
            );
        }
function add_page_and_update(
            $page_title,
            $menu_title,
            $capability,
            $menu_slug,
            $function = '',
            $icon_url = '',
            $position = null
        ) {
            $this->_menu_slug           = $menu_slug;
            $this->_is_top_level        = true;
            $this->_menu_exists         = true;
            $this->_network_menu_exists = true;

            return self::add_page(
                $page_title,
                $menu_title,
                $capability,
                $menu_slug,
                $function,
                $icon_url,
                $position
            );
        }
function add_page_and_update ( $ page_title , $ menu_title , $ capability , $ menu_slug , $ function = '' , $ icon_url = '' , $ position = null ) { $ this -> _menu_slug = $ menu_slug ; $ this -> _is_top_level = true ; $ this -> _menu_exists = true ; $ this -> _network_menu_exists = true ; return self :: add_page ( $ page_title , $ menu_title , $ capability , $ menu_slug , $ function , $ icon_url , $ position ) ; }
Add page and update menu instance settings.

@author Vova Feldman (@svovaf)
@since  2.0.0

@param string          $page_title
@param string          $menu_title
@param string          $capability
@param string          $menu_slug
@param callable|string $function
@param string          $icon_url
@param int|null        $position

@return string
Add page and update menu instance settings .