bp_core_remove_nav_item hide tab not working correctly
-
hi,
i read 3 topics about this on support section, but i think user are right bp_core_remove_nav_item not working properly on your plguin.
for example if i create two menus
Menu 1: addreviews
Menu 2: myreviewsSo far, all menu works fine and can be access in all users profile. But if i want to display only addreviews to all profiles, but hide myreviews here is my code:
function hide_myreviews(){ global $bp; if (!bp_is_my_profile() ) { bp_core_remove_nav_item( 'myreviews' ); } } add_action( 'bp_init', 'hide_myreviews');
now myreview is hiding, good! But if i try to access addreviews, it give also 404 error page, but i didn’t remove it from nav item. i think if i remove one item, all item not accessing in your plugin and return 404. you can test your self, i tested many times with default wordpress theme… something going wrong on your plugin.
please let me know a soon as possible how to fix or quick fix for this until you release new update?
thanks, btw great plugin..
- The topic ‘bp_core_remove_nav_item hide tab not working correctly’ is closed to new replies.