load.php
869 Bytes
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
<?php
/*
Plugin Name: P2P Bundle Example
Author: scribu
*/
// Include SCB library
require_once dirname( __FILE__ ) . '/scb/load.php';
/**
* Load P2P.
*
* @since 1.3.4
*/
function _badgeos_p2p_load() {
if ( function_exists( 'p2p_register_connection_type' ) ) {
return;
}
define( 'P2P_PLUGIN_VERSION', '1.6.3-alpha' );
define( 'P2P_TEXTDOMAIN', 'badgeos' );
require_once dirname( __FILE__ ) . '/p2p-core/init.php';
register_uninstall_hook( __FILE__, array( 'P2P_Storage', 'uninstall' ) );
if ( is_admin() ) {
_badgeos_p2p_load_admin();
}
}
scb_init( '_badgeos_p2p_load' );
/**
* Load P2P admin functionality.
*
* @since 1.3.4
*/
function _badgeos_p2p_load_admin() {
P2P_Autoload::register( 'P2P_', dirname( __FILE__ ) . '/p2p-admin' );
new P2P_Box_Factory();
new P2P_Column_Factory();
new P2P_Dropdown_Factory();
new P2P_Tools_Page();
}