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
Source
File: bp-forums/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 );
}
Changelog
| Version | Description |
|---|---|
| bbPress (r3395) | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.