Checks whether a specific element type is registered.
Description
See also
Parameters
- $slug
-
(string) (Required) Element type slug.
Return
(bool) True if the element type is registered, false otherwise.
Source
File: src/db-objects/elements/element-types/element-type-manager.php
public function has( $slug ) { return isset( $this->element_types[ $slug ] ); }
Changelog
Version | Description |
---|---|
1.0.0 | Introduced. |