WP_Notify.php
public function display_notices() {
        // Go through all notices
        foreach( $this->active as $id=>$count ) {

            // If there is a call-able function, execute it
            if ( is_callable( $this->notices[$id]['cond_func'] ) ) {
                $cond = call_user_func( $this->notices[$id]['cond_func'] );
            } else {
                $cond = true;
            }

            // Print the notification
            if ( $cond ) {
                $this->print_notification( $this->notices[$id] );
            }

            // If only 1 count is available, unset the notice
            if ( $count === 1 ) {
                unset( $this->active[$id] );
            }

            // Decrease the notice counts
            if ( $count > 1 ) {
                $this->active[$id] = $count - 1;
            }
        }

        $this->save();
    }
public function display_notices() {
        // Go through all notices
        foreach( $this->active as $id=>$count ) {

            // If there is a call-able function, execute it
            if ( is_callable( $this->notices[$id]['cond_func'] ) ) {
                $cond = call_user_func( $this->notices[$id]['cond_func'] );
            } else {
                $cond = true;
            }

            // Print the notification
            if ( $cond ) {
                $this->print_notification( $this->notices[$id] );
            }

            // If only 1 count is available, unset the notice
            if ( $count === 1 ) {
                unset( $this->active[$id] );
            }

            // Decrease the notice counts
            if ( $count > 1 ) {
                $this->active[$id] = $count - 1;
            }
        }

        $this->save();
    }
public function display_notices ( ) { // Go through all notices foreach ( $ this -> active as $ id => $ count ) { // If there is a call-able function, execute it if ( is_callable ( $ this -> notices [ $ id ] [ 'cond_func' ] ) ) { $ cond = call_user_func ( $ this -> notices [ $ id ] [ 'cond_func' ] ) ; } else { $ cond = true ; } // Print the notification if ( $ cond ) { $ this -> print_notification ( $ this -> notices [ $ id ] ) ; } // If only 1 count is available, unset the notice if ( $ count === 1 ) { unset ( $ this -> active [ $ id ] ) ; } // Decrease the notice counts if ( $ count > 1 ) { $ this -> active [ $ id ] = $ count - 1 ; } } $ this -> save ( ) ; }
Display the notices.

@return void
Display the notices .