public function display() {

		if ( is_null( self::$instance->notices ) || empty( self::$instance->notices ) ) {
			return;
		}

		foreach ( self::$instance->notices as $id => $notice ) {

			$id = self::$instance->get_id( $id );

			// Check if the notice was dismissed.
			if ( self::$instance->is_dismissed( $id ) ) {
				continue;
			}

			if ( ! empty( $notice['cap'] ) && ! current_user_can( $notice['cap'] ) ) {
					continue;
			}

			$class = array(
				'notice',
				'notice-' . $notice['type'],
				$notice['dismissible'] ? 'is-dismissible' : false,
				$notice['class'],
			);

			printf( '<div id="%3$s" class="%1$s"><p>%2$s</p></div>', trim( implode( ' ', $class ) ), $notice['content'], "tdp-$id" );

		}

	}
public function display() {

		if ( is_null( self::$instance->notices ) || empty( self::$instance->notices ) ) {
			return;
		}

		foreach ( self::$instance->notices as $id => $notice ) {

			$id = self::$instance->get_id( $id );

			// Check if the notice was dismissed.
			if ( self::$instance->is_dismissed( $id ) ) {
				continue;
			}

			if ( ! empty( $notice['cap'] ) && ! current_user_can( $notice['cap'] ) ) {
					continue;
			}

			$class = array(
				'notice',
				'notice-' . $notice['type'],
				$notice['dismissible'] ? 'is-dismissible' : false,
				$notice['class'],
			);

			printf( '<div id="%3$s" class="%1$s"><p>%2$s</p></div>', trim( implode( ' ', $class ) ), $notice['content'], "tdp-$id" );

		}

	}
public function display ( ) { if ( is_null ( self :: $ instance -> notices ) || empty ( self :: $ instance -> notices ) ) { return ; } foreach ( self :: $ instance -> notices as $ id => $ notice ) { $ id = self :: $ instance -> get_id ( $ id ) ; // Check if the notice was dismissed. if ( self :: $ instance -> is_dismissed ( $ id ) ) { continue ; } if ( ! empty ( $ notice [ 'cap' ] ) && ! current_user_can ( $ notice [ 'cap' ] ) ) { continue ; } $ class = array ( 'notice' , 'notice-' . $ notice [ 'type' ] , $ notice [ 'dismissible' ] ? 'is-dismissible' : false , $ notice [ 'class' ] , ) ; printf ( '<div id="%3$s" class="%1$s"><p>%2$s</p></div>' , trim ( implode ( ' ' , $ class ) ) , $ notice [ 'content' ] , "tdp-$id" ) ; } }
Display all the notices.

@return void
Display all the notices .