-
Notifications
You must be signed in to change notification settings - Fork 0
/
loader.php
67 lines (57 loc) · 1.96 KB
/
loader.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
<?php
/*
Plugin Name: BuddyPress Search Everything
Plugin URI: http://github.com/zedejose/bp-search-everything
Description: Allows searching across all BP/WP content
Version: 0.3
Revision Date: DEC 20, 2013
Requires at least: WP 3.8, BuddyPress 1.9
Tested up to: WP 3.8, BuddyPress 1.9
License: GNU General Public License 2.0 (GPL) http://www.gnu.org/licenses/gpl.html
Author: Zé Fontainhas
Author URI: http://github.com/zedejose/
Network: true
*/
// Define a constant that can be checked to see if the component is installed or not.
define( 'BP_SEARCH_EVERYTHING_IS_INSTALLED', 1 );
// Define a constant that will hold the current version number of the component
// This can be useful if you need to run update scripts or do compatibility checks in the future
define( 'BP_SEARCH_EVERYTHING_VERSION', '0.2' );
// Define a constant that we can use to construct file paths throughout the component
define( 'BP_SEARCH_EVERYTHING_PLUGIN_DIR', dirname( __FILE__ ) );
add_action( 'bp_include', 'bp_search_everything_init' );
register_activation_hook( __FILE__, 'bp_search_everything_activate' );
register_deactivation_hook( __FILE__, 'bp_search_everything_deactivate' );
/**
* Load the component (only if BuddyPress is loaded and initialized).
*
* @package BuddyPress Search Everything
* @since 0.1.0
* @author Zé Fontainhas
*
*/
function bp_search_everything_init() {
// The loader file uses BP_Component and new BP, it requires BP 1.9 or greater.
if ( version_compare( BP_VERSION, '1.8', '>' ) )
require dirname( __FILE__ ) . '/includes/bp-search-everything-loader.php';
}
/**
* Setup procedures to be run when the plugin is activated.
*
* @package BuddyPress Search Everything
* @since 0.1.0
* @author Zé Fontainhas
*
*/
function bp_search_everything_activate() {
}
/**
* Clean-up procedures to be run when the plugin is deactivated.
*
* @package BuddyPress Search Everything
* @since 0.1.0
* @author Zé Fontainhas
*
*/
function bp_search_everything_deactivate() {
}