-
jordynn posted on the forum topic Hide Notification Settings in the group How-To and Troubleshooting: 13 years, 8 months ago
Thanks @pcwriter! (and @mariochampion!)
That piece of code solved my issue! It has removed the “notifications” subnav from the “My Account” adminbar menu too.
đ
Edit: It seems to only remove the âNotificationsâ subnav in the âMy Accountâ adminbar menu when Iâm looking at the âŚ/members/admin/settings/ page
-
pcwriter posted on the forum topic Hide Notification Settings in the group How-To and Troubleshooting: 13 years, 8 months ago
To remove the notifications subnav item, add the following snippet to your functions.php file:
function remove_notifications_subnav(){
global $bp;
if ( $bp->current_component == $bp->settings->slug ) {
bp_core_remove_subnav_item($bp->settings->slug, 'notifications');
}
}
add_action( 'wp', 'remove_notifications_subnav', 2 );This is…[Read more]
-
Patrik posted on the forum topic How to Remove and Add Items in "bp_get_displayed_user_nav" in the group How-To and Troubleshooting: 14 years, 1 month ago
@youngmicroserf I’m having the same issue with the example that @mariochampion provided.
mariochampion or anyone else who knows; it would be very helpfull if you could tell what to change. I assume it’s the xprofile.php file we should copy and edit since I can’t find a file named xprofile-setting.php.
-
Youngmicroserf posted on the forum topic How to Remove and Add Items in "bp_get_displayed_user_nav" in the group How-To and Troubleshooting: 14 years, 1 month ago
I’m bumping this because the @-mention above didn’t work, apparently. @boonebgorges, for some reason, your suggested solution doesn’t work. I suppose it has to do with the hook, but using bp_core_remove_nav_item(âgroupsâ) doesn’t work at ‘bp_setup_nav’, while it does work at the point @mariochampion suggested. Here’s a problem, though, in my ins…[Read more]
-
Youngmicroserf posted on the forum topic How to Remove and Add Items in "bp_get_displayed_user_nav" in the group How-To and Troubleshooting: 14 years, 1 month ago
@Boone Gorges, using bp_core_remove_nav_item( ‘blogs’ ) at bp_setup_nav didn’t work for me. But putting it in mariochampions function right after “global $bp” did – any idea why? @mariochampion, sorry, but I’m new to BP, and I can’t find the xprofile-settings.php you’re referring to above – could you give me a hand? Could you also indicate where you […]
-
footybible posted on the forum topic First stable release & Docs in the group BuddyPress Moderation: 14 years, 1 month ago
@mariochampion thanks
-
footybible posted on the forum topic First stable release & Docs in the group BuddyPress Moderation: 14 years, 1 month ago
@aaronfrerichs @mariochampion Whereabouts is this fix added?
Many thanks
-
Boone Gorges posted on the forum topic How to Remove and Add Items in "bp_get_displayed_user_nav" in the group How-To and Troubleshooting: 14 years, 2 months ago
Thanks for the example code, @mariochampion. Action order can be a bit mystifying. I assume that your action is working because it’s getting loaded after BP is, otherwise I don’t think it would work. In any case, it’s very helpful to have more data points.
@mariochampion
Not recently active