Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/08/2016 09:58:55 PM (6 years ago)
Author:
imath
Message:

Add a new filter to edit the users to mention

In case an activity contains users to mention, allow the list of found users to be edited.

Props henry.wright, wdfee

Fixes #6682

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-activity/bp-activity-functions.php

    r10544 r10571  
    119119    }
    120120
    121     return $mentioned_users;
     121    /**
     122     * Filters the mentioned users.
     123     *
     124     * @since 2.5.0
     125     *
     126     * @param array $mentioned_users Associative array with user IDs as keys and usernames as values.
     127     */
     128    return apply_filters( 'bp_activity_mentioned_users', $mentioned_users );
    122129}
    123130
Note: See TracChangeset for help on using the changeset viewer.