bp-activity-loader.php 547 Bytes
Newer Older
root's avatar
root committed
1
2
<?php
/**
lechuck's avatar
lechuck committed
3
 * BuddyPress Activity Streams Loader.
root's avatar
root committed
4
 *
lechuck's avatar
lechuck committed
5
 * An activity stream component, for users, groups, and site tracking.
root's avatar
root committed
6
7
8
 *
 * @package BuddyPress
 * @subpackage ActivityCore
lechuck's avatar
lechuck committed
9
 * @since 1.5.0
root's avatar
root committed
10
11
 */

lechuck's avatar
lechuck committed
12
// Exit if accessed directly.
ale's avatar
ale committed
13
defined( 'ABSPATH' ) || exit;
root's avatar
root committed
14

lechuck's avatar
lechuck committed
15
require dirname( __FILE__ ) . '/classes/class-bp-activity-component.php';
root's avatar
root committed
16

lechuck's avatar
lechuck committed
17
18
/**
 * Bootstrap the Activity component.
lechuck's avatar
lechuck committed
19
20
 *
 * @since 1.6.0
lechuck's avatar
lechuck committed
21
 */
lechuck's avatar
lechuck committed
22
function bp_setup_activity() {
lechuck's avatar
lechuck committed
23
	buddypress()->activity = new BP_Activity_Component();
lechuck's avatar
lechuck committed
24
25
}
add_action( 'bp_setup_components', 'bp_setup_activity', 6 );