Thread Starter
luigi
(@corlui)
Turning, turning and solving all thanks
Hey there @corlui !
I hope you are having a great day!
I’m sorry that I took so long in getting back to you. I’m glad to hear that you were able to resolve this issue.
For future reference just in case anyone else is looking for this, you can try the following custom code:
function exclude_tab_if_not_personal_profile() {
if ( ! bp_is_my_profile() ) {
bp_core_remove_nav_item( 'test' );
}
}
add_action( 'bp_init', 'exclude_tab_if_not_personal_profile' );
You’ll need to replace test with the slug of your custom menu page.
I hope the above helps. Please let me know if you need any further assistance regarding this, or anything else. Thanks!
If this plugin was useful to you, I’d really appreciate if you could share your feedback regarding the plugin in the form of a review so that it can help other users seeking a similar solution.
Kind regards,
Nahid