public static function isDismissed( $id ) {
		$dismissed = false;
		$id = sanitize_key( $id );

		// Get all of the notices this user has dismissed.
		$dismissals = get_user_meta( get_current_user_id(), 'boldgrid_dismissed_admin_notices' );

		// Loop through all of the dismissed notices. If we find our $id, then mark bool and break.
		foreach ( $dismissals as $dismissal ) {
			if ( $id === $dismissal['id'] ) {
				$dismissed = true;
				break;
			}
		}

		return $dismissed;
	}
public static function isDismissed( $id ) {
		$dismissed = false;
		$id = sanitize_key( $id );

		// Get all of the notices this user has dismissed.
		$dismissals = get_user_meta( get_current_user_id(), 'boldgrid_dismissed_admin_notices' );

		// Loop through all of the dismissed notices. If we find our $id, then mark bool and break.
		foreach ( $dismissals as $dismissal ) {
			if ( $id === $dismissal['id'] ) {
				$dismissed = true;
				break;
			}
		}

		return $dismissed;
	}
public static function isDismissed ( $ id ) { $ dismissed = false ; $ id = sanitize_key ( $ id ) ; // Get all of the notices this user has dismissed. $ dismissals = get_user_meta ( get_current_user_id ( ) , 'boldgrid_dismissed_admin_notices' ) ; // Loop through all of the dismissed notices. If we find our $id, then mark bool and break. foreach ( $ dismissals as $ dismissal ) { if ( $ id === $ dismissal [ 'id' ] ) { $ dismissed = true ; break ; } } return $ dismissed ; }
Is there a user dismissal record for a particular admin notice id?

@since 2.1.0

@static

@param  string $id An admin notice id.
@return bool
Is there a user dismissal record for a particular admin notice id?