Checks whether a specific submodule is registered.
Description
See also
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
Version | Description |
---|---|
1.0.0 | Introduced. |