Manager_With_Parents_Trait::get_parent_manager( string $slug )

Retrieves a parent manager.

Description

Parameters

$slug

(string) (Required) Parent manager identifier.

Return

(Leaves_And_Love\Plugin_Lib\DB_Objects\Manager) Parent manager instance.

Source

File: src/db-objects/manager-with-parents-trait.php

	public function get_parent_manager( $slug ) {
		if ( ! isset( $this->parent_managers[ $slug ] ) ) {
			return null;
		}

		return $this->parent_managers[ $slug ];
	}

Changelog

Changelog
Version Description
1.0.0 Introduced.