Adds a child manager.
Description
See also
Parameters
- $slug
-
(string) (Required) Child manager identifier.
- $manager
-
(Leaves_And_Love\Plugin_Lib\DB_Objects\Manager) (Required) Child manager instance.
Return
(bool) True on success, false on failure.
Source
File: src/db-objects/manager-with-children-trait.php
public function add_child_manager( $slug, $manager ) { if ( ! is_a( $manager, Manager::class ) ) { return false; } $this->child_managers[ $slug ] = $manager; return true; }
Changelog
Version | Description |
---|---|
1.0.0 | Introduced. |