@katmacau
6 years, 9 months ago
It was some code in a plugin that was deprecated. The solution was to replace with this:
function bpcodex_remove_member_notifications_tab() { bp_core_remove_nav_item( ‘notifications’ ); } add_action( ‘bp_actions’, ‘bpcodex_remove_member_notifications_tab’ );
I also have one where I set a value of a bp_nav item. Eg:
$bp->bp_nav[‘friends’][‘name’] = “New label”;
What new code would I use for that?
Thanks for that. That was just a snippet of the code I’ve inherited in a theme I am using. There are multiple remove nav items so that code will work for those.
The other two deprecated functions I have in there include lines like this:
$bp->bp_options_nav[‘dashboard’][‘edit-conpany-profile’] = false;
And:
if ($bp->current_component != “membership”)
What is the new code for ” $bp->bp_options_nav” and “$bp->current_component”?
Thanks in advance.
Any update on this one? I also need to know what to replace it with.
For anyone interested, I found this documentation that covers it:
xprofile_set_field_data
xprofile_set_field_data( $field, $user_id, $value, $is_required = false );