-
Notifications
You must be signed in to change notification settings - Fork 0
/
bp-profile-tabs.php
49 lines (43 loc) · 1.46 KB
/
bp-profile-tabs.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
<?php
/**
*
* @package BP_Profile_Tabs
* @author Jacob Schweitzer <[email protected]>
* @license GPL-2.0+
* @link http://ijas.me
* @copyright 2014 Jacob Schweitzer
*
* Plugin Name: BuddyPress Profile Tabs
* Plugin URI: http://ijas.me
* Description: Makes the profile groups BuddyPress provides into tabs to better organize and consolidate the profile page.
* Version: 1.6.1
* Author: Jacob Schweitzer
* Author URI: http://ijas.me
* Text Domain: bp-profile-tabs
* License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
* Domain Path: /languages
*/
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
/*
* Load Main Plugin File
*/
require_once( plugin_dir_path( __FILE__ ) . 'public/class-bp-profile-tabs.php' );
/*
* Register hooks that are fired when the plugin is activated or deactivated.
* When the plugin is deleted, the uninstall.php file is loaded.
*
*/
register_activation_hook( __FILE__, array( 'BP_Profile_Tabs', 'activate' ) );
register_deactivation_hook( __FILE__, array( 'BP_Profile_Tabs', 'deactivate' ) );
add_action( 'plugins_loaded', array( 'BP_Profile_Tabs', 'get_instance' ) );
/*
* Load Admin Settings Page
*/
if ( is_admin() ) {
require_once( plugin_dir_path( __FILE__ ) . 'admin/class-bp-profile-tabs-admin.php' );
add_action( 'plugins_loaded', array( 'BP_Profile_Tabs_Admin', 'get_instance' ) );
}