Loads BuddyPress Activity extension

since 2.0.0 bbPress (r3395)
package bbPress
subpackage BuddyPress

 Methods

The bbPress BuddyPress Activity loader

__construct() 
since 2.0.0 bbPress (r3395)

Maybe disable activity stream comments on select actions

activity_can_comment(boolean $can_comment = true) : boolean
since 2.0.0 bbPress (r3399)
global BP_Activity_Template $activities_template

Parameters

$can_comment

boolean

Returns

boolean

Wrapper for deleting bbPress actions from BuddyPress activity stream

delete_activity(array $args = array()) : integer
since 2.0.0 bbPress (r3395)

Parameters

$args

array

Array of arguments for bp_activity_add()

Returns

integerActivity ID if successful, false if not

Register our activity actions with BuddyPress

register_activity_actions() 
since 2.0.0 bbPress (r3395)

Record an activity stream entry when a reply is created

reply_create($reply_id = 0, integer $topic_id = 0, integer $forum_id = 0, array $anonymous_data = array(), $reply_author_id = 0) : \Bail
since 2.0.0 bbPress (r3395)

Parameters

$reply_id

$topic_id

integer

$forum_id

integer

$anonymous_data

array

$reply_author_id

Returns

\Bailearly if topic is by anonymous user

Delete the activity stream entry when a reply is spammed, trashed, or deleted

reply_delete(integer $reply_id) 

Parameters

$reply_id

integer

Update the activity stream entry when a reply status changes

reply_update(integer $reply_id, \obj $post) : \Bail

Parameters

$reply_id

integer

$post

\obj

Returns

\Bailearly if not a reply, or reply is by anonymous user

Record an activity stream entry when a topic is created or updated

topic_create(integer $topic_id = 0, integer $forum_id = 0, array $anonymous_data = array(), integer $topic_author_id = 0) : \Bail
since 2.0.0 bbPress (r3395)

Parameters

$topic_id

integer

$forum_id

integer

$anonymous_data

array

$topic_author_id

integer

Returns

\Bailearly if topic is by anonymous user

Delete the activity stream entry when a topic is spammed, trashed, or deleted

topic_delete(integer $topic_id = 0

Parameters

$topic_id

integer

Update the activity stream entry when a topic status changes

topic_update(integer $topic_id = 0, \obj $post = null) : \Bail

Parameters

$topic_id

integer

$post

\obj

Returns

\Bailearly if not a topic, or topic is by anonymous user

Allow the variables, actions, and filters to be modified by third party plugins and themes.

fully_loaded() 
since 2.1.0 bbPress (r3902)

Check for an existing activity stream entry for a given post_id

get_activity_id(integer $post_id = 0) : integer
Static

Parameters

$post_id

integer

ID of the topic or reply

Returns

integerif an activity id is verified, false if not

Wrapper for recoding bbPress actions to the BuddyPress activity stream

record_activity(array $args = array()) : integer
since 2.0.0 bbPress (r3395)

Parameters

$args

array

Array of arguments for bp_activity_add()

Returns

integerActivity ID if successful, false if not

Setup the actions

setup_actions() 
since 2.0.0 bbPress (r3395)
access private

Setup the filters

setup_filters() 
since 2.0.0 bbPress (r3395)
access private

Extension variables

setup_globals() 
since 2.0.0 bbPress (r3395)
access private

 Properties

 

The name of the BuddyPress component, used in activity streams

$component : string

Default

''
 

Forum Create Activity Action

$forum_create : string

Default

''
 

Reply Create Activity Action

$reply_create : string

Default

''
 

Reply Edit Activity Action

$reply_edit : string

Default

''
 

Topic Close Activity Action

$topic_close : string

Default

''
 

Topic Create Activity Action

$topic_create : string

Default

''
 

Topic Edit Activity Action

$topic_edit : string

Default

''
 

Topic Open Activity Action

$topic_open : string

Default

''