public function getLastDismissal() {
		$lastDismissal = 0;

		$prompts = $this->getPrompts();
		foreach ( $prompts as $prompt ) {
			$promptDismissal = 0;

			if ( ! empty( $prompt['time_dismissed'] ) ) {
				$promptDismissal = $prompt['time_dismissed'];
			} elseif ( ! empty( $prompt['time_snoozed'] ) ) {
				$promptDismissal = $prompt['time_snoozed'];
			}

			$lastDismissal = $promptDismissal > $lastDismissal ? $promptDismissal : $lastDismissal;
		}

		return $lastDismissal;
	}
public function getLastDismissal() {
		$lastDismissal = 0;

		$prompts = $this->getPrompts();
		foreach ( $prompts as $prompt ) {
			$promptDismissal = 0;

			if ( ! empty( $prompt['time_dismissed'] ) ) {
				$promptDismissal = $prompt['time_dismissed'];
			} elseif ( ! empty( $prompt['time_snoozed'] ) ) {
				$promptDismissal = $prompt['time_snoozed'];
			}

			$lastDismissal = $promptDismissal > $lastDismissal ? $promptDismissal : $lastDismissal;
		}

		return $lastDismissal;
	}
public function getLastDismissal ( ) { $ lastDismissal = 0 ; $ prompts = $ this -> getPrompts ( ) ; foreach ( $ prompts as $ prompt ) { $ promptDismissal = 0 ; if ( ! empty ( $ prompt [ 'time_dismissed' ] ) ) { $ promptDismissal = $ prompt [ 'time_dismissed' ] ; } elseif ( ! empty ( $ prompt [ 'time_snoozed' ] ) ) { $ promptDismissal = $ prompt [ 'time_snoozed' ] ; } $ lastDismissal = $ promptDismissal > $ lastDismissal ? $ promptDismissal : $ lastDismissal ; } return $ lastDismissal ; }
Get the time of the last dismissal or snooze, whichever is latest.

One reason this is used is to ensure prompts don't show one after another for the user. For
example, if the user just dismissed a rating prompt, we may not want to show them another
prompt for at least 2 days.

@since 2.7.7

@return int
Get the time of the last dismissal or snooze whichever is latest .