includes/class-freemius.php
private function add_network_menu_when_missing() {
            $this->_logger->entrance();

            if ( ! $this->_is_network_active ) {
                // Plugin wasn't activated on the network level.
                return;
            }

            if ( ! fs_is_network_admin() ) {
                // The context is not the network admin.
                return;
            }

            if ( $this->_menu->has_network_menu() ) {
                // Plugin already has a network level menu.
                return;
            }

            if ( $this->is_network_activation_mode() ) {
                /**
                 * Do not add during activation mode, otherwise, there will be duplicate menus while the opt-in
                 * screen is being shown.
                 *
                 * @author Leo Fajardo (@leorw)
                 */
                return;
            }

            if ( ! WP_FS__SHOW_NETWORK_EVEN_WHEN_DELEGATED ) {
                if ( $this->is_network_delegated_connection() ) {
                    // Super-admin delegated the connection to the site admins.
                    return;
                }
            }

            if ( ! $this->_menu->has_menu() || $this->_menu->is_top_level() ) {
                $this->_dynamically_added_top_level_page_hook_name = $this->_menu->add_page_and_update(
                    $this->get_plugin_name(),
                    $this->get_plugin_name(),
                    'manage_options',
                    $this->_menu->has_menu() ? $this->_menu->get_slug() : $this->_slug
                );
            } else {
                $this->_menu->add_subpage_and_update(
                    $this->_menu->get_parent_slug(),
                    $this->get_plugin_name(),
                    $this->get_plugin_name(),
                    'manage_options',
                    $this->_menu->get_slug()
                );
            }
        }
private function add_network_menu_when_missing() {
            $this->_logger->entrance();

            if ( ! $this->_is_network_active ) {
                // Plugin wasn't activated on the network level.
                return;
            }

            if ( ! fs_is_network_admin() ) {
                // The context is not the network admin.
                return;
            }

            if ( $this->_menu->has_network_menu() ) {
                // Plugin already has a network level menu.
                return;
            }

            if ( $this->is_network_activation_mode() ) {
                /**
                 * Do not add during activation mode, otherwise, there will be duplicate menus while the opt-in
                 * screen is being shown.
                 *
                 * @author Leo Fajardo (@leorw)
                 */
                return;
            }

            if ( ! WP_FS__SHOW_NETWORK_EVEN_WHEN_DELEGATED ) {
                if ( $this->is_network_delegated_connection() ) {
                    // Super-admin delegated the connection to the site admins.
                    return;
                }
            }

            if ( ! $this->_menu->has_menu() || $this->_menu->is_top_level() ) {
                $this->_dynamically_added_top_level_page_hook_name = $this->_menu->add_page_and_update(
                    $this->get_plugin_name(),
                    $this->get_plugin_name(),
                    'manage_options',
                    $this->_menu->has_menu() ? $this->_menu->get_slug() : $this->_slug
                );
            } else {
                $this->_menu->add_subpage_and_update(
                    $this->_menu->get_parent_slug(),
                    $this->get_plugin_name(),
                    $this->get_plugin_name(),
                    'manage_options',
                    $this->_menu->get_slug()
                );
            }
        }
private function add_network_menu_when_missing ( ) { $ this -> _logger -> entrance ( ) ; if ( ! $ this -> _is_network_active ) { // Plugin wasn't activated on the network level.
 return ; } if ( ! fs_is_network_admin ( ) ) { // The context is not the network admin.
 return ; } if ( $ this -> _menu -> has_network_menu ( ) ) { // Plugin already has a network level menu.
 return ; } if ( $ this -> is_network_activation_mode ( ) ) { /**
                 * Do not add during activation mode, otherwise, there will be duplicate menus while the opt-in
                 * screen is being shown.
                 *
                 * @author Leo Fajardo (@leorw)
                 */ return ; } if ( ! WP_FS__SHOW_NETWORK_EVEN_WHEN_DELEGATED ) { if ( $ this -> is_network_delegated_connection ( ) ) { // Super-admin delegated the connection to the site admins.
 return ; } } if ( ! $ this -> _menu -> has_menu ( ) || $ this -> _menu -> is_top_level ( ) ) { $ this -> _dynamically_added_top_level_page_hook_name = $ this -> _menu -> add_page_and_update ( $ this -> get_plugin_name ( ) , $ this -> get_plugin_name ( ) , 'manage_options' , $ this -> _menu -> has_menu ( ) ? $ this -> _menu -> get_slug ( ) : $ this -> _slug ) ; } else { $ this -> _menu -> add_subpage_and_update ( $ this -> _menu -> get_parent_slug ( ) , $ this -> get_plugin_name ( ) , $ this -> get_plugin_name ( ) , 'manage_options' , $ this -> _menu -> get_slug ( ) ) ; } }
If a plugin was network activated and connected but don't have a network
level settings, then add an artificial menu item for the Account and other
Freemius settings.

@author Vova Feldman (@svovaf)
@since  2.0.0
If a plugin was network activated and connected but don t have a network level settings then add an artificial menu item for the Account and other Freemius settings .