bp_activity_register_activity_actions()
Register the activity feed actions for updates.
Description
Source
File: bp-activity/bp-activity-functions.php
function bp_activity_register_activity_actions() {
$bp = buddypress();
bp_activity_set_action(
$bp->activity->id,
'activity_update',
__( 'Posted a status update', 'buddyboss' ),
'bp_activity_format_activity_action_activity_update',
__( 'Updates', 'buddyboss' ),
array( 'activity', 'group', 'member', 'member_groups' )
);
bp_activity_set_action(
$bp->activity->id,
'activity_comment',
__( 'Replied to a status update', 'buddyboss' ),
'bp_activity_format_activity_action_activity_comment',
__( 'Activity Comments', 'buddyboss' )
);
/**
* Fires at the end of the activity actions registration.
*
* Allows plugin authors to add their own activity actions alongside the core actions.
*
* @since BuddyPress 1.6.0
*/
do_action( 'bp_activity_register_activity_actions' );
// Backpat. Don't use this.
do_action( 'updates_register_activity_actions' );
}
Changelog
| Version | Description |
|---|---|
| BuddyPress 1.6.0 | 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.