BuddyDev

BuddyDev Blog

Set default filter for BuddyPress Activity

If you need to change the default activity filter from Everything to something else, you can do that easily. Here is an example where I am setting the BuddyPress default activity filter to activity updates. /** * Set Default BuddyPress Activity filter. */ function buddydev_set_default_activity_filter() { // If the filter is already set, do not …

Better group type directory title for BuddyPress

A few days ago, we discussed about having better member type directory title. Today, let us see the same for the group types directory title. In this post, we will see how to improve the directory title for the group types directory:- Problem:- By default, BuddyPress does not update the  directory title to reflect current …

Better member type directory title for BuddyPress

Are you using BuddyPress member types on your site? If yes, you might have noticed the issue with member type directory title. In our forum, one of our members asked about it. Since I thought It may benefit more people, here is the code with an example. Screenshot:- Member type directory title default Note the …

Disable BuddyPress Components Conditionally

Do you want to disable some of the BuddyPress components based on user role or some other conditions? if you do, BuddyPress provides us with a filter hook "bp_is_active" that you  can use to conditionally disable the components. It is not even necessary to filter based on role, you can filter based on anything you …

Disabling oEmbed support in BuddyPress Activity

If you want to disable oEmbed(e.g youtube videos, vimeo videos etc embedding) support in BuddyPress activity, you can simply put the following code in your bp-custom.php and it will do that. add_filter( 'bp_use_oembed_in_activity', '__return_false' ); Yup! That's all you need to disable oEmbed support in the BuddyPress activity. Bonus:- Disable clickable links in activity. Don't want …