Changeset 9286
- Timestamp:
- 12/29/2014 06:07:00 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-xprofile/bp-xprofile-activity.php
r9273 r9286 43 43 ); 44 44 45 /** 46 * Fires after the registration of default activity actions for Extended Profile component. 47 * 48 * @since BuddyPress (1.1.0) 49 */ 45 50 do_action( 'xprofile_register_activity_actions' ); 46 51 } … … 65 70 } 66 71 72 /** 73 * Filters the formatted 'new_avatar' activity stream action. 74 * 75 * @since BuddyPress (2.0.0) 76 * 77 * @param string $action Formatted action for activity stream. 78 * @param object $activity Activity object. 79 */ 67 80 return apply_filters( 'bp_xprofile_format_activity_action_new_avatar', $action, $activity ); 68 81 } … … 86 99 $action = sprintf( __( '%s’s profile was updated', 'buddypress' ), '<a href="' . $profile_link . '">' . bp_core_get_user_displayname( $activity->user_id ) . '</a>' ); 87 100 101 /** 102 * Filters the formatted 'updated_profile' activity stream action. 103 * 104 * @since BuddyPress (2.0.0) 105 * 106 * @param string $action Formatted action for activity stream. 107 * @param object $activity Activity object. 108 */ 88 109 return apply_filters( 'bp_xprofile_format_activity_action_updated_profile', $action, $activity ); 89 110 } … … 167 188 } 168 189 190 /** 191 * Filters the return value of bp_activity_set_action. 192 * 193 * @since BuddyPress (1.1.0) 194 * 195 * @param bool $value Whether or not an action was successfully registered. 196 * @param string $key Key used for the registered action. 197 * @param string $value Value used for the registered action. 198 */ 169 199 return apply_filters( 'xprofile_register_activity_action', bp_activity_set_action( buddypress()->profile->id, $key, $value ), $key, $value ); 170 200 } … … 186 216 } 187 217 188 // Allow user ID to be filtered 218 /** 219 * Filters the user ID when a user has ploaded a new avatar. 220 * 221 * @since BuddyPress (1.5.0) 222 * 223 * @param int $value ID of the displayed user. 224 */ 189 225 $user_id = apply_filters( 'bp_xprofile_new_avatar_user_id', bp_displayed_user_id() ); 190 226 … … 263 299 // Default throttle time is 2 hours. Filter to change (in seconds) 264 300 if ( ! empty( $existing['activities'] ) ) { 301 302 /** 303 * Filters the throttle time, in seconds, used to prevent excessive activity posting. 304 * 305 * @since BuddyPress (2.0.0) 306 * 307 * @param int $value Throttle time, in seconds. 308 */ 265 309 $throttle_period = apply_filters( 'bp_xprofile_updated_profile_activity_throttle_time', HOUR_IN_SECONDS * 2 ); 266 310 $then = strtotime( $existing['activities'][0]->date_recorded );
Note: See TracChangeset
for help on using the changeset viewer.