includes/class-fs-admin-notices.php
function clear_all_sticky( $network_level_or_blog_id = null ) {
            if ( ! $this->_is_multisite ||
                 false === $network_level_or_blog_id ||
                 0 == $network_level_or_blog_id ||
                 is_null( $network_level_or_blog_id )
            ) {
                $notices = $this->get_site_notices( $network_level_or_blog_id );
                $notices->clear_all_sticky();
            }

            if ( $this->_is_multisite &&
                 ( true === $network_level_or_blog_id || is_null( $network_level_or_blog_id ) )
            ) {
                $this->_network_notices->clear_all_sticky();
            }
        }
function clear_all_sticky( $network_level_or_blog_id = null ) {
            if ( ! $this->_is_multisite ||
                 false === $network_level_or_blog_id ||
                 0 == $network_level_or_blog_id ||
                 is_null( $network_level_or_blog_id )
            ) {
                $notices = $this->get_site_notices( $network_level_or_blog_id );
                $notices->clear_all_sticky();
            }

            if ( $this->_is_multisite &&
                 ( true === $network_level_or_blog_id || is_null( $network_level_or_blog_id ) )
            ) {
                $this->_network_notices->clear_all_sticky();
            }
        }
function clear_all_sticky ( $ network_level_or_blog_id = null ) { if ( ! $ this -> _is_multisite || false === $ network_level_or_blog_id || 0 == $ network_level_or_blog_id || is_null ( $ network_level_or_blog_id ) ) { $ notices = $ this -> get_site_notices ( $ network_level_or_blog_id ) ; $ notices -> clear_all_sticky ( ) ; } if ( $ this -> _is_multisite && ( true === $ network_level_or_blog_id || is_null ( $ network_level_or_blog_id ) ) ) { $ this -> _network_notices -> clear_all_sticky ( ) ; } }
Clear all sticky messages.

@author Vova Feldman (@svovaf)
@since  2.0.0

@param int|null $network_level_or_blog_id
Clear all sticky messages .