-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdomain-core.php
48 lines (43 loc) · 1.15 KB
/
domain-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
<?php
/**
* Plugin Name: Core Functions
* Plugin URI: https://www.mrkwp.com
* Description: Website Core Functions
* Author: MRK WP
* Author URI: https://www.mrkwp.com
* Text Domain: domain-core
* Domain Path: /languages
* Version: 1.0.0
*
* @package mrkwp
*/
// If this file is called firectly, abort!!!
defined( 'ABSPATH' ) or die( 'No Access!' );
// Require once the Composer Autoload.
if ( file_exists( dirname( __FILE__ ) . '/lib/autoload.php' ) ) {
require_once dirname( __FILE__ ) . '/lib/autoload.php';
}
/**
* The code that runs during plugin activation.
*
* @return void
*/
function activate_domain_core_plugin() {
Domain_Core\Base\Activate::activate();
}
register_activation_hook( __FILE__, 'activate_domain_core_plugin' );
/**
* The code that runs during plugin deactivation.
*
* @return void
*/
function deactivate_domain_core_plugin() {
Domain_Core\Base\Deactivate::deactivate();
}
register_deactivation_hook( __FILE__, 'deactivate_domain_core_plugin' );
/**
* Initialize all the core classes of the plugin.
*/
if ( class_exists( 'Domain_Core\\Init' ) ) {
Domain_Core\Init::register_services();
}