Skip to:
Content
Pages
Categories
Search
Top
Bottom

How @mention all members


  • Julia_B
    Participant

    @julia_b

    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 6 replies - 1 through 6 (of 6 total)

  • Venutius
    Moderator

    @venutius

    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

    @julia_b

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


    Venutius
    Moderator

    @venutius

    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.


    Henry Wright
    Moderator

    @henrywright

    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

    @julia_b

    Thanks @henrywright and @venutius.

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


    Henry Wright
    Moderator

    @henrywright

    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 );
        }
    }
Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.
Skip to toolbar