Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
BBP_BuddyPress_Activity::setup_actions()
Setup the actions
Description Description
Source Source
File: includes/extend/buddypress/activity.php
private function setup_actions() {
// Register the activity stream actions
add_action( 'bp_register_activity_actions', array( $this, 'register_activity_actions' ) );
// Hook into topic and reply creation
add_action( 'bbp_new_topic', array( $this, 'topic_create' ), 10, 4 );
add_action( 'bbp_new_reply', array( $this, 'reply_create' ), 10, 5 );
// Hook into topic and reply status changes
add_action( 'edit_post', array( $this, 'topic_update' ), 10, 2 );
add_action( 'edit_post', array( $this, 'reply_update' ), 10, 2 );
// Hook into topic and reply deletion
add_action( 'bbp_delete_topic', array( $this, 'topic_delete' ), 10, 1 );
add_action( 'bbp_delete_reply', array( $this, 'reply_delete' ), 10, 1 );
// Append forum filters in site wide activity streams
add_action( 'bp_activity_filter_options', array( $this, 'activity_filter_options' ), 10 );
// Append forum filters in single member activity streams
add_action( 'bp_member_activity_filter_options', array( $this, 'activity_filter_options' ), 10 );
// Append forum filters in single group activity streams
add_action( 'bp_group_activity_filter_options', array( $this, 'activity_filter_options' ), 10 );
}
Changelog Changelog
| Version | Description |
|---|---|
| 2.0.0 | Introduced. |