-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathabc.php
46 lines (37 loc) · 1.02 KB
/
abc.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
42
43
44
45
46
<?php
/**
* Plugin Name: ABC Plugin
* Plugin URI: http://wphive.com/
* Description: Essential extension for wordpress starter plugin.
* Version: 1.0.0
* Requires at least: 5.0
* Requires PHP: 5.6
* Author: Shams Sadek
* Author URI: https://github.com/shams-sadek1981/wordpress_plugin_starter
* License: GPL v2 or later
* License URI: https://github.com/shams-sadek1981/wordpress_plugin_starter
*/
if (!defined('ABSPATH')) {
exit;
}
if (!file_exists(__DIR__ . "/vendor/autoload.php")) {
exit('Please run `composer install or dump-autoload`');
}
require_once __DIR__ . "/vendor/autoload.php";
/**
* Initialize classes
*/
use Inc\Base\BaseController;
use Inc\Init;
/**
* set initial variable
*/
BaseController::setPluginPath(plugin_dir_path(__FILE__));
BaseController::setPluginUrl(plugin_dir_url(__FILE__));
BaseController::setPluginBasename(plugin_basename(__FILE__));
/**
* register services
*
* @param null
*/
Init::registerServices();