Registers a new submodule.
Description
See also
Parameters
- $slug
-
(string) (Required) Submodule slug.
- $submodule_class_name
-
(string) (Required) Submodule class name.
Return
(bool|awsmug\Torro_Forms\Modules\Error) True on success, error object on failure.
Source
File: src/modules/submodule-registry-interface.php
public function register( $slug, $submodule_class_name );
Changelog
Version | Description |
---|---|
1.0.0 | Introduced. |