Skip to:
Content

BuddyPress.org

Changeset 10779


Ignore:
Timestamp:
05/19/2016 03:15:44 AM (8 years ago)
Author:
boonebgorges
Message:

Pass the $user_id param to the bp_get_last_activity filter.

Props Offereins.
See #6997.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-members/bp-members-template.php

    r10774 r10779  
    16521652         *
    16531653         * @since 1.5.0
    1654          *
    1655          * @param string $value Formatted 'active [x days ago]' string.
    1656          */
    1657         return apply_filters( 'bp_get_last_activity', $last_activity );
     1654         * @since 2.6.0 Added the `$user_id` parameter.
     1655         *
     1656         * @param string $value   Formatted 'active [x days ago]' string.
     1657         * @param int    $user_id ID of the user.
     1658         */
     1659        return apply_filters( 'bp_get_last_activity', $last_activity, $user_id );
    16581660    }
    16591661
Note: See TracChangeset for help on using the changeset viewer.