Tribe__JSON_LD__Abstract::type_exists( $id,  $type )

Return true if the $type has been already registered for the specified $id.


Parameters

$id

(Required)

$type

(Required)


Top ↑

Return

(bool)


Top ↑

Source

File: src/Tribe/JSON_LD/Abstract.php

	public function type_exists( $id, $type ) {
		return isset( self::$types[ $id ] ) && false !== array_search( $type, self::$types[ $id ] );
	}

Top ↑

Changelog

Changelog
Version Description
4.7.12 Introduced.