-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpeerpublish.php
executable file
·72 lines (62 loc) · 2.2 KB
/
peerpublish.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
<?php
/*
Plugin Name: Peer Publish
Description: Manage your Content Distributor Machine settings here by adding/editing the websites to export.
Version: 1.0
Author: WebGarh Solutions
Author URI: http://www.cwebconsultants.com/
Text Domain: peer_publish
*/
if ( ! defined( 'WPINC' ) ) {
die;
}
/* Plugin Name */
$cwebPluginName="Peer Publish";
/* Use Domain as the folder name */
$PluginTextDomain="peer_publish";
/**
* The code that runs during plugin activation.
*/
function PPNM_activate_this_plugin_distributor_machine() {
require_once plugin_dir_path( __FILE__ ) . 'includes/classes/activate-class-distributor-machine.php';
PPNM_Plugin_Activator_distributor_machine::activate();
}
/**
* The code that runs during plugin deactivation.
*/
function PPNM_deactivate_this_plugin_distributor_machine() {
require_once plugin_dir_path( __FILE__ ) . 'includes/classes/deactive-class-distributor-machine.php';
PPNM_Plugin_Deactivator_distributor_machine::deactivate();
}
/* Register Hooks For Start And Deactivate */
register_activation_hook( __FILE__, 'PPNM_activate_this_plugin_distributor_machine' );
register_deactivation_hook( __FILE__, 'PPNM_deactivate_this_plugin_distributor_machine' );
/**
* The core plugin class that is used to define internationalization,
*/
require plugin_dir_path( __FILE__ ) . 'includes/classes/classCwebdistributorMachine.php';
/**
* 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 PPNM_distributor_machine() {
$plugin = new PPNM_ClassdistributorMachine();
$plugin->run();
}
PPNM_distributor_machine();
/* Constant */
define('PPNM_PLUGIN_FS_PATH_MACHINE', plugin_dir_path(__FILE__) );
define('PPNM_PLUGIN_WS_PATH_MACHINE', plugin_dir_url(__FILE__) );
define('PPNM_FS_PATH_MACHINE', plugin_dir_path(__FILE__) );
define('PPNM_WS_PATH_MACHINE', plugin_dir_url(__FILE__) );
define( 'PPNM_LICENSE', true );
/*
* Include Custom Feild Files
*/
//Declares Common Fucntion File
require plugin_dir_path( __FILE__ ) . 'includes/function/functions.php';