Hints_Abstract::should_display()

Should the hints display.


Return

(boolean) True if it should display.


Top ↑

Source

File: src/Tribe/Onboarding/Hints_Abstract.php

	public function should_display() {
		// Bail if it's not on the page we want to display.
		if ( ! $this->is_on_page() ) {
			return false;
		}

		// Bail if the `Times to display` is set and it was reached.
		if (
			is_numeric( $this->times_to_display )
			&& ( tribe( 'onboarding' )->get_views( $this->hints_id ) > $this->times_to_display )
		) {
			return false;
		}

		return true;
	}

Top ↑

Changelog

Changelog
Version Description
4.14.9 Introduced.