BuddyDev

Disable BuddyPress group deletion by Non Site Admin

We received this question from Andre? How would you disable the BuddyPress group deletion by group admins and only allow site admins to delete a group? I believe, It may be helpful for others, so posting the code here Disabling the delete option in the Group -> Manage screen:- function buddydev_disable_group_delete_by_non_site_admin() { if ( ! …

Creating a stunning WordPress Login Page with Community Builder Theme

Creating a stunning WordPress Login Page with Community Builder Theme

Flexibility and speed are the forte of the Community Builder theme for WordPress and BuddyPress. Today, I will show you the various ways to create an amazing login page for your WordPress/BuddyPress website. Requirements:- A working install of WordPress/BuddyPress Community Builder Theme for WordPress & BuddyPress Internet connection And some imagination! If you have looked …

Redirect Author Archive Page to BuddyPress User Profile

If you have enabled BuddyPress and want to redirect to user's profile when someone tries to access the author archive page, you can use the following code. function buddydev_author_redirect_to_profile() { if ( is_author() && function_exists( 'bp_core_redirect' ) ) { $author_id = get_queried_object_id(); bp_core_redirect( bp_core_get_user_domain( $author_id ) ); } } add_action( 'template_redirect', 'buddydev_author_redirect_to_profile' ); Isn't that …

Definitive Guide to BuddyPress Avatars

This is your ultimate guide for anything you ever wanted to know about BuddyPress Avatars. What is an avatar? As per Oxford dictionary, The avatar is an icon or figure representing a particular person in a computer game, Internet forum, etc. In case of BuddyPress, Avatars are used for user profile display photo as well as for group …

Changing Default Subnav for a BuddyPress Component

When you click on a component on the BuddyPress User profile, the default subnav is the screen that will get rendered. Default subnav is registered when a component is registered with BuddyPress. BuddyPress does allows us changing it using the bp_core_new_nav_default function. It has following signature. * @param array|string $args { * @type string $parent_slug …