forked from puleeno/wp-peacock
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wp-peacock.php
41 lines (33 loc) · 853 Bytes
/
wp-peacock.php
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
37
38
39
40
41
<?php
/**
* Plugin Name: WP Peacock - another WordPress SEO plugin
* Plugin description: Highlight your site in search results of Search Engines
* Author: Puleeno nguyen
* Author URI: https://puleeno.com
* Tag: SEO
*/
use Peacock\Peacock;
define('WP_PEACOCK_PLUGIN_FILE', __FILE__);
class WP_Peacock
{
protected $isReady = false;
public function bootstrap()
{
$composerAutoloader = sprintf('%s/vendor/autoload.php', dirname(__FILE__));
if (file_exists($composerAutoloader)) {
require_once $composerAutoloader;
$this->isReady = true;
}
}
public function load()
{
if (empty($this->isReady)) {
return;
}
// Load features
Peacock::getInstance();
}
}
$peakcock = new WP_Peacock();
$peakcock->bootstrap();
$peakcock->load();