Main::get_views( string $id = '' )

Get the views for an onboarding element.


Parameters

$id

(string) (Optional) The onboarding ID (tour or hint).

Default value: ''


Top ↑

Return

(mixed) The views for the given ID.


Top ↑

Source

File: src/Tribe/Onboarding/Main.php

	public function get_views( $id = '' ) {

		if ( empty( $id ) ) {
			return;
		}

		$option = tribe_get_option( 'tribe_onboarding_views', [] );

		if ( ! isset( $option[ $id ] ) ) {
			return;
		}

		return intval( $option[ $id ] );
	}

Top ↑

Changelog

Changelog
Version Description
4.14.9 Introduced.