friends_register_activity_actions()
Register the activity actions for bp-friends.
Description
Source
File: bp-friends/bp-friends-activity.php
function friends_register_activity_actions() { if ( !bp_is_active( 'activity' ) ) { return false; } $bp = buddypress(); // These two added in BP 1.6. bp_activity_set_action( $bp->friends->id, 'friendship_accepted', __( 'Connections accepted', 'buddyboss' ), 'bp_friends_format_activity_action_friendship_accepted', __( 'Connections', 'buddyboss' ), array( 'activity', 'member' ) ); bp_activity_set_action( $bp->friends->id, 'friendship_created', __( 'New connections', 'buddyboss' ), 'bp_friends_format_activity_action_friendship_created', __( 'Connections', 'buddyboss' ), array( 'activity', 'member' ) ); // < BP 1.6 backpat. bp_activity_set_action( $bp->friends->id, 'friends_register_activity_action', __( 'New connection created', 'buddyboss' ) ); /** * Fires after all default bp-friends activity actions have been registered. * * @since BuddyPress 1.1.0 */ do_action( 'friends_register_activity_actions' ); }
Changelog
Version | Description |
---|---|
BuddyPress 1.1.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.