Monday, May 29, 2023

BuddyPress: How to hide profile Export Data link

add_filter( ‘bp_settings_show_user_data_page’, ‘venutius_remove_data_page’ ); function venutius_remove_data_page($filter) { return false; }   Source: https://buddypress.org/support/topic/how-to-hide-export-data-in-user-profile-settings/

BuddyPress: How to remove the setting Profile Visibility

function profile_visibility_subnav() { global $bp; bp_core_remove_subnav_item( ‘settings’, ‘profile’ ); } add_action( ‘bp_setup_nav’, ‘profile_visibility_subnav’,999 ); Source: https://buddypress.org/support/topic/remove-profile-visibility-subnav-2/

How to remove the BuddyPress profile ‘last active’ status

Adding the code below to my bp-custom.php file removed the last active status on one of my sites add_filter( ‘bp_nouveau_get_member_meta’, ‘ps_remove_last_active’,10,3 ); function ps_remove_last_active ( $meta, $member, $is_loop ){ $meta[‘last_activity’] = ”; return $meta; } https://buddypress.org/support/topic/remove-last-active-status/

How to disable BuddyPress Public Message Button

On one of my sites, I added the code below to my bp-custom.php file and that worked for me. add_filter(‘bp_get_send_public_message_button’, ‘__return_false’); I obtained this solution from the url below: https://buddypress.org/support/topic/disable-public-message/

How to change the default BuddyPress profile landing tab

Adding the following line to my bp-custom.php fle worked for me.  This changed the default landing tab to Profile. define(‘BP_DEFAULT_COMPONENT’, ‘profile’ ); I obtained this solution from the following url: https://codex.buddypress.org/getting-started/guides/change-members-profile-landing-tab/