public function getNext() {
		$nextPrompt = array();
		$prompts = $this->getPrompts();

		foreach ( $prompts as $prompt ) {
			$isDismissed      = isset( $prompt['time_dismissed'] );
			$isOlder          = empty( $nextPrompt ) || ( ! $isDismissed && $prompt['time_added'] < $nextPrompt['time_added'] );
			$isStillSnoozing  = ! empty( $prompt['time_snoozed_until'] ) && $prompt['time_snoozed_until'] > time();

			if ( ! $isDismissed && $isOlder && ! $isStillSnoozing ) {
				$nextPrompt = $prompt;
			}
		}

		if ( ! $this->isMinInterval() ) {
			$nextPrompt = array();
		}

		return $nextPrompt;
	}
public function getNext() {
		$nextPrompt = array();
		$prompts = $this->getPrompts();

		foreach ( $prompts as $prompt ) {
			$isDismissed      = isset( $prompt['time_dismissed'] );
			$isOlder          = empty( $nextPrompt ) || ( ! $isDismissed && $prompt['time_added'] < $nextPrompt['time_added'] );
			$isStillSnoozing  = ! empty( $prompt['time_snoozed_until'] ) && $prompt['time_snoozed_until'] > time();

			if ( ! $isDismissed && $isOlder && ! $isStillSnoozing ) {
				$nextPrompt = $prompt;
			}
		}

		if ( ! $this->isMinInterval() ) {
			$nextPrompt = array();
		}

		return $nextPrompt;
	}
public function getNext ( ) { $ nextPrompt = array ( ) ; $ prompts = $ this -> getPrompts ( ) ; foreach ( $ prompts as $ prompt ) { $ isDismissed = isset ( $ prompt [ 'time_dismissed' ] ) ; $ isOlder = empty ( $ nextPrompt ) || ( ! $ isDismissed && $ prompt [ 'time_added' ] < $ nextPrompt [ 'time_added' ] ) ; $ isStillSnoozing = ! empty ( $ prompt [ 'time_snoozed_until' ] ) && $ prompt [ 'time_snoozed_until' ] > time ( ) ; if ( ! $ isDismissed && $ isOlder && ! $ isStillSnoozing ) { $ nextPrompt = $ prompt ; } } if ( ! $ this -> isMinInterval ( ) ) { $ nextPrompt = array ( ) ; } return $ nextPrompt ; }
Get the next prompt to display.

We only display one prompt at a time. Get that prompt.

@since 2.7.7
Get the next prompt to display .