-
Notifications
You must be signed in to change notification settings - Fork 6
/
loader.php
37 lines (33 loc) · 1.12 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
<?php
/*
Plugin Name: BP-Album
Plugin URI: https://github.com/BP-Media/bp-album
Description: Photo Albums for BuddyPress. Includes Posts to Activity Stream, Member Comments, and Gallery Privacy Controls. Works with the current BuddyPress theme and includes Easy To Skin Templates.
Version: 0.1.9
Revision Date: October 30, 2022
Requires at least: 3.5.1
Tested up to: WP 6.0.3, BP 10.5.0, PHP 7.4.1
License: GNU General Public License 2.0 (GPL) http://www.gnu.org/licenses/gpl.html
Author: The BP-Media Team
Author URI: https://github.com/BP-Media
Network: True
Text Domain: bp-album
*/
/**
* Attaches Bp-Album to Buddypress.
*
* This function is REQUIRED to prevent WordPress from white-screening if Bp-Album is activated on a
* system that does not have an active copy of BuddyPress.
*
* @version 0.1.8.14
* @since 0.1.8.0
*/
function bpa_init() {
require_once dirname( __FILE__ ) . '/includes/bpa.core.php';
}
add_action( 'bp_loaded', 'bpa_init' );
function bpa_album_activate() {
require_once dirname( __FILE__ ) . '/includes/bpa.core.php';
bp_album_install();
}
register_activation_hook( __FILE__, 'bpa_album_activate' );