Ticket #5942: bp-friends-activity-5942.diff
| File bp-friends-activity-5942.diff, 1.6 KB (added by , 11 years ago) |
|---|
-
src/bp-friends/bp-friends-activity.php
113 113 // < BP 1.6 backpat 114 114 bp_activity_set_action( $bp->friends->id, 'friends_register_activity_action', __( 'New friendship created', 'buddypress' ) ); 115 115 116 /** 117 * Fires after all default bp-friends activity actions have been registered. 118 * 119 * @since BuddyPress (1.1.0) 120 */ 116 121 do_action( 'friends_register_activity_actions' ); 117 122 } 118 123 add_action( 'bp_register_activity_actions', 'friends_register_activity_actions' ); … … 139 144 $action = apply_filters( 'friends_activity_friendsip_accepted_action', $action, $friendship ); 140 145 } 141 146 147 /** 148 * Filters the 'friendship_accepted' activty action format. 149 * 150 * @since BuddyPress (2.0.0) 151 * 152 * @param string $action String text for the 'friendship_accepted' action. 153 * @param object $activity Activity data. 154 */ 142 155 return apply_filters( 'bp_friends_format_activity_action_friendship_accepted', $action, $activity ); 143 156 } 144 157 … … 165 178 $action = apply_filters( 'friends_activity_friendsip_accepted_action', $action, $friendship ); 166 179 } 167 180 181 /** 182 * Filters the 'friendship_created' activty action format. 183 * 184 * @since BuddyPress (2.0.0) 185 * 186 * @param string $action String text for the 'friendship_created' action. 187 * @param object $activity Activity data. 188 */ 168 189 return apply_filters( 'bp_friends_format_activity_action_friendship_created', $action, $activity ); 169 190 } 170 191