Untitled
unknown
plain_text
a year ago
506 B
28
Indexable
<?php
defined('ABSPATH') || exit;
use Inc\Admin\Admin;
if (!class_exists('Driblle')) {
final class Driblle
{
public function __construct()
{
add_action('plugins_loaded', [$this, 'init_plugin']);
}
public static function init()
{
static $instance = false;
if (!$instance) {
$instance = new self();
}
return $instance;
}
public function init_plugin()
{
if (is_admin()) {
new Admin();
}
}
}
function dribble()
{
return Driblle::init();
}
dribble();
}Editor is loading...
Leave a Comment