| since |
2.0.0 bbPress (r3395) |
| package |
bbPress |
| subpackage |
BuddyPress |
Methods
The bbPress BuddyPress Activity loader
__construct()
| since |
2.0.0 bbPress (r3395) |
Maybe link directly to topics and replies in activity stream entries
activity_get_permalink(string $link = '', mixed $activity_object = false) : string
| since |
2.0.0 bbPress (r3399) |
Parameters
$link
string
$activity_object
mixed
Returns
stringThe link to the activity stream item
Wrapper for deleting bbPress actions from BuddyPress activity stream
delete_activity(array $args = array()) : integer
| since |
2.0.0 bbPress (r3395) |
Parameters
$args
arrayArray 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
integerID 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
arrayArray 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
Forum Create Activity Action
$forum_create : string
Reply Create Activity Action
$reply_create : string
Reply Edit Activity Action
$reply_edit : string
Topic Close Activity Action
$topic_close : string
Topic Create Activity Action
$topic_create : string
Topic Edit Activity Action
$topic_edit : string
Topic Open Activity Action
$topic_open : string
Maybe disable activity stream comments on select actions
Parameters
$can_comment
booleanReturns
boolean