bp_members_new_avatar_throttle_time

bp_members_new_avatar_throttle_time

Hook Type: filter

See hook in core

Displaying hooks found in version: buddypress.14.3.3

apply_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]