Submodule_Registry_Trait::has( string $slug )

Checks whether a specific submodule is registered.

Description

Parameters

$slug

(string) (Required) Submodule slug.

Return

(bool) True if the submodule is registered, false otherwise.

Source

File: src/modules/submodule-registry-trait.php

	public function has( $slug ) {
		return isset( $this->submodules[ $slug ] );
	}

Changelog

Changelog
Version Description
1.0.0 Introduced.