Skip to:
Content
Pages
Categories
Search
Top
Bottom

How @mention all members

  • @julia_b

    Participant

    Is there way to @mention all members?

    This is something I’d like to be able to do on the bbpress forum on my buddypress site. I find forum mentions draw more site engagement than emailing all members, but filling a post with all members’ @ names detracts from the post content. So is there a function like @all or @everyone?

    Thanks 🙂

Viewing 7 replies - 1 through 7 (of 7 total)
  • @venutius

    Moderator

    The nearest thing I know is https://wordpress.org/plugins/crowdmentions/ however this does not have an @all function, just friends or group members but it may help

    @julia_b

    Participant

    Thanks @venutius. That’s good to know about, but I’m really looking for something that allows me to @mention everyone.

    @venutius

    Moderator

    Other than writing your own code I think that’s the only option, you could ask @henrywright the plugin creator to add it as a feature but I’m not sure he’s in favour of it.

    @henrywright

    Moderator

    Hi @julia_b

    I chose not to add an @ all command because it would be easy for a user to spam people.

    @ friends is supported though. Hope that helps!

    @julia_b

    Participant

    Thanks @henrywright and @venutius.

    That could help. Do you if there’s an easy way to bulk add members as friends?

    @henrywright

    Moderator

    Hi @julia_b,

    I haven’t tested this so try in your testing site first:

    // Change this to the ID of the member you'd like to add friends to.
    $id = 1;
    
    $user_query = array(
        'populate_extras' => false,
        'exclude' => $id
    );
    
    $user_query = new BP_User_Query( $user_query );
    foreach ( $user_query->results as $user ) {
        $status = BP_Friends_Friendship::check_is_friend( $id, $user->ID );
        if ( 'not_friends' == $status ) {
            friends_add_friend( $id, $user->ID );
        }
    }

    @kenanen

    Participant

    Hello, is there a code that will allow only admin users to use this? @all @everybody

Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.
Skip to toolbar