-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplugin-manager.php
More file actions
36 lines (32 loc) · 908 Bytes
/
plugin-manager.php
File metadata and controls
36 lines (32 loc) · 908 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?php
/**
* Plugin Name: Ramphor Plugin Manager
* Plugin URI: https://puleeno.com
* Author: Puleeno Nguyen
* Author URI: https://puleeno.com
* Version: 0.0.1
* Description: Manage plugin the lightway to require and recommended plugins for WordPress.
* Tags: plugin manager, recommended, require, dependences
*
* @package Ramphor\Plugin
*/
use Ramphor\Plugin\Manager;
if ( ! class_exists( Manager::class ) && file_exists( $composer_file = sprintf( '%s/vendor/autoload.php', dirname( __FILE__ ) ) ) ) {
require_once $composer_file;
}
if (! function_exists('load_Manager')) {
/**
* Ensure only one instance of the class is ever invoked.
*
* @since 2.5.0
*/
function load_Manager()
{
$GLOBALS['tgmpa'] = Manager::get_instance();
}
}
if (did_action('plugins_loaded')) {
load_Manager();
} else {
add_action('plugins_loaded', 'load_Manager');
}