-
Notifications
You must be signed in to change notification settings - Fork 1
/
init.php
53 lines (43 loc) · 1.22 KB
/
init.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
47
48
49
50
51
52
53
<?php
/**
* Plugin Name: Accordion FAQ Builder
* Plugin URI: https://devhelp.us
* Description: This is an Accordion FAQ Builder plugin which helps you to create awesome, eye-catchy unlimited FAQ accordion.
* Version: 0.3
* Requires at least: 4.0
* Requires PHP: 5.6
* Author: autocircle
*
* Text Domain: a-faq-builder
* Domain Path: /languages/
*
* @package a-faq-builder
*/
use \AFaqBuilder\Bootstrap;
use \AFaqBuilder\Autoloader;
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
if ( ! defined( 'AFAQBUILDER_FILE' ) ) {
define( 'AFAQBUILDER_FILE', __FILE__ );
}
if ( ! defined( 'AFAQBUILDER_BASENAME' ) ) {
define( 'AFAQBUILDER_BASENAME', plugin_basename( AFAQBUILDER_FILE ) );
}
if ( ! defined( 'AFAQBUILDER_DIR' ) ) {
define( 'AFAQBUILDER_DIR', plugin_dir_path( __FILE__ ) );
}
if ( ! defined( 'AFAQBUILDER_URL' ) ) {
define( 'AFAQBUILDER_URL', plugin_dir_url( __FILE__ ) );
}
if ( ! defined( 'AFAQBUILDER_NAMESPACE' ) ) {
define( 'AFAQBUILDER_NAMESPACE', 'AFaqBuilder' );
}
if ( ! defined( 'AFAQBUILDER_VERSION' ) ) {
define( 'AFAQBUILDER_VERSION', '0.3' );
}
// Run autoloader
require_once __DIR__ . '/autoloader.php';
Autoloader::run();
// Bootstrap the plugin
Bootstrap::instance();