Element_Type_Manager::has( string $slug )

Checks whether a specific element type is registered.

Description

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

Changelog
Version Description
1.0.0 Introduced.