-
Notifications
You must be signed in to change notification settings - Fork 6
/
knowledgebase.php
113 lines (100 loc) · 3.43 KB
/
knowledgebase.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
<?php
/**
* WebberZone Knowledge Base
*
* WebberZone Knowledge Base let's you create a knowledge base
* or FAQ section on your WordPress website.
*
* @package WZKB
* @author Ajay D'Souza
* @license GPL-2.0+
* @link https://webberzone.com
* @copyright 2015-2024 Ajay D'Souza
*
* @wordpress-plugin
* Plugin Name: WebberZone Knowledge Base
* Plugin URI: https://github.com/WebberZone/knowledgebase
* Description: Fastest way to create a highly-flexible multi-product knowledge base.
* Version: 2.2.2
* Author: WebberZone
* Author URI: https://webberzone.com
* License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
* Text Domain: knowledgebase
* Domain Path: /languages
*/
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
/**
* Holds the filesystem directory path (with trailing slash) for WZKB
*
* @since 1.2.0
*
* @var string $wzkb_plugin_dir Plugin folder path
*/
if ( ! defined( 'WZKB_PLUGIN_DIR' ) ) {
define( 'WZKB_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
}
/**
* Holds the filesystem directory path (with trailing slash) for WZKB
*
* @since 1.2.0
*
* @var string $wzkb_plugin_url Plugin folder URL
*/
if ( ! defined( 'WZKB_PLUGIN_URL' ) ) {
define( 'WZKB_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
}
/**
* Holds the filesystem directory path (with trailing slash) for WZKB
*
* @since 1.2.0
*
* @var string $wzkb_plugin_file Plugin Root File
*/
if ( ! defined( 'WZKB_PLUGIN_FILE' ) ) {
define( 'WZKB_PLUGIN_FILE', __FILE__ );
}
/*
*----------------------------------------------------------------------------
* Include files
*----------------------------------------------------------------------------
*/
require_once WZKB_PLUGIN_DIR . 'includes/admin/settings/class-settings-api.php';
require_once WZKB_PLUGIN_DIR . 'includes/admin/settings/class-knowledgebase-settings.php';
require_once WZKB_PLUGIN_DIR . 'includes/admin/settings/options-api.php';
require_once WZKB_PLUGIN_DIR . 'includes/public/public.php';
require_once WZKB_PLUGIN_DIR . 'includes/public/class-template-handler.php';
require_once WZKB_PLUGIN_DIR . 'includes/public/related.php';
require_once WZKB_PLUGIN_DIR . 'includes/activate-deactivate.php';
require_once WZKB_PLUGIN_DIR . 'includes/custom-post-type.php';
require_once WZKB_PLUGIN_DIR . 'includes/main.php';
require_once WZKB_PLUGIN_DIR . 'includes/shortcode.php';
require_once WZKB_PLUGIN_DIR . 'includes/search.php';
require_once WZKB_PLUGIN_DIR . 'includes/feed.php';
require_once WZKB_PLUGIN_DIR . 'includes/breadcrumbs.php';
require_once WZKB_PLUGIN_DIR . 'includes/widgets/class-wzkb-breadcrumb-widget.php';
require_once WZKB_PLUGIN_DIR . 'includes/widgets/class-wzkb-sections-widget.php';
require_once WZKB_PLUGIN_DIR . 'includes/widgets/class-wzkb-articles-widget.php';
require_once WZKB_PLUGIN_DIR . 'includes/blocks/register-blocks.php';
require_once WZKB_PLUGIN_DIR . 'includes/deprecated.php';
/*
*----------------------------------------------------------------------------
* Dashboard and Administrative Functionality
*----------------------------------------------------------------------------
*/
if ( is_admin() || ( defined( 'WP_CLI' ) && WP_CLI ) ) {
include_once WZKB_PLUGIN_DIR . 'includes/admin/admin.php';
include_once WZKB_PLUGIN_DIR . 'includes/admin/modules/cache.php';
}
/**
* WZKB Settings
*
* @since 1.5.0
*
* @var array WZKB Settings
*/
global $wzkb_settings;
$wzkb_settings = wzkb_get_settings();