This repository has been archived by the owner on Oct 31, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathccb-core.php
62 lines (53 loc) · 1.91 KB
/
ccb-core.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
<?php
/**
* Church Community Builder Core API
*
* @link https://www.wpccb.com
* @since 0.9.0
* @package CCB_Core
*
* @wordpress-plugin
* Plugin Name: Church Community Builder Core API
* Plugin URI: https://www.wpccb.com
* Description: A plugin to provide a core integration of the Church Community Builder API into WordPress custom post types
* Version: 1.0.8
* Author: Jared Cobb
* Author URI: https://www.jaredcobb.com/
* License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
* Text Domain: ccb-core
* Domain Path: /languages
*/
// Do not allow direct access to this file.
if ( ! defined( 'WPINC' ) ) {
die;
}
define( 'CCB_CORE_PATH', plugin_dir_path( __FILE__ ) );
define( 'CCB_CORE_URL', plugin_dir_url( __FILE__ ) );
define( 'CCB_CORE_BASENAME', plugin_basename( __FILE__ ) );
define( 'CCB_CORE_VERSION', '1.0.8' );
// Check minimum requirements before proceeding.
require_once CCB_CORE_PATH . 'includes/class-ccb-core-requirements.php';
$ccb_core_requirements = new CCB_Core_Requirements();
if ( $ccb_core_requirements->requirements_met ) {
// Code that runs during plugin activation and deactivation.
require_once CCB_CORE_PATH . 'includes/class-ccb-core-activator.php';
register_activation_hook( __FILE__, array( 'CCB_Core_Activator', 'activate' ) );
register_deactivation_hook( __FILE__, array( 'CCB_Core_Activator', 'deactivate' ) );
// Configuration constants.
if ( file_exists( CCB_CORE_PATH . 'ccb-core-config.php' ) ) {
require_once CCB_CORE_PATH . 'ccb-core-config.php';
}
// Internationalization, dashboard-specific hooks, and public-facing site hooks.
require_once CCB_CORE_PATH . 'includes/class-ccb-core.php';
/**
* Begin execution of the plugin.
*
* @access public
* @return void
*/
function run_ccb_core() {
$plugin = new CCB_Core();
}
run_ccb_core();
}