-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcbxcareertoolkit.php
63 lines (53 loc) · 2.12 KB
/
cbxcareertoolkit.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
<?php
/**
*
* @link https://codeboxr.com
* @since 1.0.0
* @package CBXcareertoolkit
*
* @wordpress-plugin
* Plugin Name: CBX Career Toolkit
* Plugin URI: https://github.com/codeboxrcodehub/cbxcareertoolkit/
* Description: Helper plugin for CBX Career plugins
* Version: 1.0.1
* Requires at least: 5.3
* Requires PHP: 8.2
* Author: Codeboxr
* Author URI: https://codeboxr.com
* License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
* Text Domain: cbxcareertoolkit
* Domain Path: /languages
*/
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
defined( 'CBXCAREER_TOOLKIT_PLUGIN_NAME' ) or define( 'CBXCAREER_TOOLKIT_PLUGIN_NAME', 'cbxcareertoolkit' );
defined( 'CBXCAREER_TOOLKIT_PLUGIN_VERSION' ) or define( 'CBXCAREER_TOOLKIT_PLUGIN_VERSION', '1.0.1' );
defined( 'CBXCAREER_TOOLKIT_BASE_NAME' ) or define( 'CBXCAREER_TOOLKIT_BASE_NAME', plugin_basename( __FILE__ ) );
defined( 'CBXCAREER_TOOLKIT_ROOT_PATH' ) or define( 'CBXCAREER_TOOLKIT_ROOT_PATH', plugin_dir_path( __FILE__ ) );
defined( 'CBXCAREER_TOOLKIT_ROOT_URL' ) or define( 'CBXCAREER_TOOLKIT_ROOT_URL', plugin_dir_url( __FILE__ ) );
defined( 'CBX_DEBUG' ) or define( 'CBX_DEBUG', false );
defined( 'CBXCAREER_TOOLKIT_DEV_MODE' ) or define( 'CBXCAREER_TOOLKIT_DEV_MODE', CBX_DEBUG );
require_once CBXCAREER_TOOLKIT_ROOT_PATH . "lib/autoload.php";
/**
* The code that runs during plugin activation.
*/
function activate_cbx_career_toolkit() {
\Cbx\Careertoolkit\CBXCareertoolkit::activate();
}//end function activate_cbx_career_toolkit
/**
* Begins execution of the plugin.
*
* Since everything within the plugin is registered via hooks,
* then kicking off the plugin from this point in the file does
* not affect the page life cycle.
*
* @since 1.0.0
*/
function run_cbxcareer_toolkit() {
// phpcs:ignore WordPress.NamingConventions.ValidFunctionName
return \Cbx\Careertoolkit\CBXCareertoolkit::instance();
}//end function run_cbxcareer_toolkit
add_action( "plugin_loaded", "run_cbxcareer_toolkit" );