diff --git a/functions.php b/functions.php index d59542a..369203a 100644 --- a/functions.php +++ b/functions.php @@ -71,3 +71,16 @@ function mla_remove_forum_subscribe_link($link){ function mla_remove_forum_title($title) { } add_filter( 'bbp_get_forum_title', 'mla_remove_forum_title' ); + +/* + * Remove profile group tab from edit profile page when there's only one profile + * group. I just says "Profile" and is kind of confusing. + */ +function mla_remove_profile_group_tab($tabs, $groups) { + if ( count( $groups ) > 1 ) { + return $tabs; + } else { + return; + } +} +add_filter( 'xprofile_filter_profile_group_tabs', 'mla_remove_profile_group_tab' ); diff --git a/members/single/profile/edit.php b/members/single/profile/edit.php index 3e95d23..9609a73 100644 --- a/members/single/profile/edit.php +++ b/members/single/profile/edit.php @@ -9,11 +9,13 @@
- +