bp-activity-loader.php 587 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

lucha's avatar
lucha committed
15
16
17
if ( ! buddypress()->do_autoload ) {
	require dirname( __FILE__ ) . '/classes/class-bp-activity-component.php';
}
root's avatar
root committed
18

lechuck's avatar
lechuck committed
19
/**
lucha's avatar
lucha committed
20
 * Set up the bp-activity component.
lechuck's avatar
lechuck committed
21
22
 *
 * @since 1.6.0
lechuck's avatar
lechuck committed
23
 */
lechuck's avatar
lechuck committed
24
function bp_setup_activity() {
lechuck's avatar
lechuck committed
25
	buddypress()->activity = new BP_Activity_Component();
lechuck's avatar
lechuck committed
26
27
}
add_action( 'bp_setup_components', 'bp_setup_activity', 6 );