-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathanp-buddypress-customization.php
52 lines (47 loc) · 1.61 KB
/
anp-buddypress-customization.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
<?php
/**
* ANP BuddyPress Customization
*
* @author Pea, Glocal
* @license GPL-2.0+
* @link http://glocal.coop
* @since 1.0.2.1
* @package ANP_BuddyPress_Customization
*/
/*
Plugin Name: Activist Network BuddyPress Customization
Description: Customization for BuddyPress and associated plugins.
Author: Pea, Glocal
Author URI: http://glocal.coop
Version: 1.0.2
License: GPLv3
Text Domain: anp-bp-custom
*/
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
/**
* Constants
*/
if ( !defined( 'ANP_BP_CUSTOM_PLUGIN_DIR' ) ) {
define( 'ANP_BP_CUSTOM_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
}
if ( !defined( 'ANP_BP_CUSTOM_PLUGIN_URL' ) ) {
define( 'ANP_BP_CUSTOM_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
}
/**
* Required Files
* Only load code that needs BuddyPress to run once BP is loaded and initialized.
* @uses bp_include
* @link https://codex.buddypress.org/plugindev/checking-buddypress-is-active/
*/
function anp_buddypress_customization_init() {
include_once( ANP_BP_CUSTOM_PLUGIN_DIR . '/inc/buddypress-custom-functions.php' );
include_once( ANP_BP_CUSTOM_PLUGIN_DIR . '/inc/buddypress-docs-custom-functions.php' );
include_once( ANP_BP_CUSTOM_PLUGIN_DIR . '/inc/bp-groupblog-custom-functions.php' );
include_once( ANP_BP_CUSTOM_PLUGIN_DIR . '/inc/invite-anyone-custom-functions.php' );
include_once( ANP_BP_CUSTOM_PLUGIN_DIR . '/inc/group-subscriptions-custom-functions.php' );
include_once( ANP_BP_CUSTOM_PLUGIN_DIR . '/inc/friendship-custom-functions.php' );
}
add_action( 'bp_include', 'anp_buddypress_customization_init' );