Utilities::add_class_instance( string $class_name, object $class_instance )

Adds the autoloaded class in an accessible object


Parameters Parameters

$class_name

(string) (Required) The name of the class instance

$class_instance

(object) (Required) The reference to the class instance


Source Source

File: src/core/class-utilities.php

	public static function add_class_instance( $class_name, $class_instance ) {

		self::$class_instances[ $class_name ] = $class_instance;

	}


Top ↑

Changelog Changelog

Changelog
Version Description
1.0.0 Introduced.