[buddypress-trac] [BuddyPress Trac] #9297: "Profile Visibility" settings link causes 404 when Extended Profiles is disabled

buddypress-trac noreply at wordpress.org
Tue Jul 22 09:43:13 UTC 2025


#9297: "Profile Visibility" settings link causes 404 when Extended Profiles is
disabled
----------------------------+-----------------------------
 Reporter:  joelkarunungan  |      Owner:  (none)
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Core            |    Version:
 Severity:  normal          |   Keywords:
----------------------------+-----------------------------
 After disabling the **Extended Profiles** component (via wp-admin →
 Settings → BuddyPress → Components), the **"Profile Visibility"** link
 still appears under the user settings navigation (e.g.,
 `/members/username/settings/profile/`).

 Since Extended Profiles is disabled, clicking this link results in a **404
 error**.

 Expected behavior:
 The "Profile Visibility" tab should be automatically removed when the
 Extended Profiles (`xprofile`) component is not active, as it depends on
 that module to function.

 Current workaround:
 I’m using the following code to manually remove the nav item:
 {{{
 add_action( 'bp_actions', function() {
     bp_core_remove_subnav_item( 'settings', 'profile', 'members' );
 }, 99 );
 }}}

 It would be great if BuddyPress could automatically hide this settings tab
 when the associated component is disabled, to avoid broken links and
 improve UX.

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/9297>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list