Tribe__JSON_LD__Abstract::type_exists( $id, $type )
Return true if the $type has been already registered for the specified $id.
Contents
Parameters
- $id
-
(Required)
- $type
-
(Required)
Return
(bool)
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 ] );
}
Changelog
| Version | Description |
|---|---|
| 4.7.12 | Introduced. |