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