Tribe__Dependency::add_active_plugin( string $main_class, string $version = null, string $path = null )
Adds a plugin to the active list
Contents
Parameters
- $main_class
-
(string) (Required) Main/base class for this plugin
- $version
-
(string) (Optional) Version number of plugin
Default value: null
- $path
-
(string) (Optional) Path to the main plugin/bootstrap file
Default value: null
Source
File: src/Tribe/Dependency.php
public function add_active_plugin( $main_class, $version = null, $path = null ) {
$plugin = array(
'class' => $main_class,
'version' => $version,
'path' => $path,
);
$this->active_plugins[ $main_class ] = $plugin;
}