-
Abhishek Saini replied to the topic Remove invite members link for group members in the forum How-to & Troubleshooting 5 months, 2 weeks ago
@andrew_long15 , you can simply add this to remove the invites tab from the all groups.
add_filter( ‘bp_groups_user_can_send_invites’, ‘__return_false’ );
-
Abhishek Saini replied to the topic Display Avatar Changes in Activity Feed in the forum How-to & Troubleshooting 5 months, 4 weeks ago
@Kokiri
Please change this function name “custom_bp_avatar_activity” and keep it unique and please remember this also that this will create a new activity So, you will get two activity for single profile uploads.
// Add action to show new avatar in activity stream
[Read more]
function bp_generate_custom_avatar_activity($user_id, $args) {
// Get the user… -
Abhishek Saini replied to the topic Hide own profile in the forum How-to & Troubleshooting 5 months, 4 weeks ago
If you want to hide currunt loggedin user from member directory you can easily use this code snippet.
`function buddyx_exclude_users( $args ) {
if ( is_admin() && ! defined( ‘DOING_AJAX’ ) ) {
return $args;
}$excluded = isset( $args[‘exclude’] ) ? $args[‘exclude’] : array();
if ( ! is_array( $excluded ) ) {…[Read more]
-
Abhishek Saini's profile was updated 6 months ago
-
Abhishek Saini replied to the topic Display Avatar Changes in Activity Feed in the forum How-to & Troubleshooting 6 months ago
Buddypress by default provide the creating activity on profile uploads.
If you want to add your custom activity as you have given in your code snippet you can use it like this because hook is deprecated.
// Add action to show new avatar in activity stream
function custom_bp_avatar_activity($user_id, $args) {
//…[Read more] -
Abhishek Saini replied to the topic Members page sidebar in the forum Installing BuddyPress 6 months ago
First Go to appearance section click on widgets and remove all widgets from the ” Members Directory Right Sidebar “.
It will remove all widgets from member directory
@abhishek6394
Active 4 days, 2 hours ago