Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)

  • katmacau
    Participant

    @katmacau

    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’ );
    

    katmacau
    Participant

    @katmacau

    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?


    katmacau
    Participant

    @katmacau

    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.


    katmacau
    Participant

    @katmacau

    Any update on this one? I also need to know what to replace it with.


    katmacau
    Participant

    @katmacau

    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 );

Viewing 5 replies - 1 through 5 (of 5 total)
Skip to toolbar