bp_members_new_avatar_throttle_time
bp_members_new_avatar_throttle_time
Appears in: buddypress.10.1.0, buddypress.10.2.0, buddypress.10.3.0, buddypress.10.4.0, buddypress.10.5.0, buddypress.10.6.0, buddypress.11.0.0, buddypress.11.1.0, buddypress.11.2.0, buddypress.11.3.1, buddypress.11.3.2, buddypress.11.4.0, buddypress.12.0.0, buddypress.12.1.1, buddypress.12.2.0, buddypress.12.3.0, buddypress.12.4.0, buddypress.12.4.1, buddypress.12.5.0, buddypress.12.5.1, buddypress.14.0.0, buddypress.14.1.0, buddypress.14.2.1, buddypress.14.3.3
Hook Type: filter
Displaying hooks found in version: buddypress.14.3.3apply_filters('bp_members_new_avatar_throttle_time') is found 1 times:
- /bp-members/bp-members-activity.php line 223
* @since 10.0.0
*
* @param int $value Throttle time, in seconds.
*/
$throttle_period = apply_filters( ‘bp_members_new_avatar_throttle_time’, HOUR_IN_SECONDS );
$then = strtotime( $last_new_avatar_activity[‘activities’][0]->date_recorded );
$now = bp_core_current_time( true, ‘timestamp’ );// Delete the old activity.
if ( ( $now – $then ) < $throttle_period ) { bp_activity_delete( [/php]