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
Thanks @venutius. That’s good to know about, but I’m really looking for something that allows me to @mention everyone.
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.
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!
Thanks @henrywright and @venutius.
That could help. Do you if there’s an easy way to bulk add members as friends?
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 );
}
}
Hello, is there a code that will allow only admin users to use this? @all @everybody