includes/class-fs-admin-notices.php
private function should_use_network_notices( $id = '', $network_level_or_blog_id = null ) {
            if ( ! $this->_is_multisite ) {
                // Not a multisite environment.
                return false;
            }

            if ( is_numeric( $network_level_or_blog_id ) ) {
                // Explicitly asked to use a specified blog storage.
                return false;
            }

            if ( is_bool( $network_level_or_blog_id ) ) {
                // Explicitly specified whether should use the network or blog level storage.
                return $network_level_or_blog_id;
            }

            return fs_is_network_admin();
        }
private function should_use_network_notices( $id = '', $network_level_or_blog_id = null ) {
            if ( ! $this->_is_multisite ) {
                // Not a multisite environment.
                return false;
            }

            if ( is_numeric( $network_level_or_blog_id ) ) {
                // Explicitly asked to use a specified blog storage.
                return false;
            }

            if ( is_bool( $network_level_or_blog_id ) ) {
                // Explicitly specified whether should use the network or blog level storage.
                return $network_level_or_blog_id;
            }

            return fs_is_network_admin();
        }
private function should_use_network_notices ( $ id = '' , $ network_level_or_blog_id = null ) { if ( ! $ this -> _is_multisite ) { // Not a multisite environment. return false ; } if ( is_numeric ( $ network_level_or_blog_id ) ) { // Explicitly asked to use a specified blog storage. return false ; } if ( is_bool ( $ network_level_or_blog_id ) ) { // Explicitly specified whether should use the network or blog level storage. return $ network_level_or_blog_id ; } return fs_is_network_admin ( ) ; }
Check if the network notices should be used.

@author Vova Feldman (@svovaf)
@since  2.0.0

@param string        $id
@param null|bool|int $network_level_or_blog_id When an integer, use the given blog storage. When `true` use the multisite notices (if there's a network). When `false`, use the current context blog notices. When `null`, the decision which notices manager to use (MS vs. Current S) will be handled internally and determined based on the $id and the context admin (blog admin vs. network level admin).

@return bool
Check if the network notices should be used .