Skip to:
Content
Pages
Categories
Search
Top
Bottom

[Resolved] bp_core_remove_subnav_item dropped in 1.7.2?

  • Avatar of Henry
    Henry
    Participant

    @henrywright-1

    bp_core_remove_subnav_item()

    I have been using this function to remove items from the sub-navigation

    Has the function been dropped in 1.7.2? I am getting a function undeclared error message.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Avatar of John James Jacoby
    John James Jacoby
    Keymaster

    @johnjamesjacoby

    Still where it’s always been, in bp-core-buddybar.php. It’s included directly, so the only way you’re getting that error is if the file is incomplete, or was modified.

    Avatar of Henry
    Henry
    Participant

    @henrywright-1

    Thanks for getting back to me. The file is complete and unmodified.

    The error was echo’d to the “Update Plugin” screen during update from v1.7.1 to 1.7.2. I was making use of the function in my functions.php to remove the mentions tab:

    function remove_mention_nav() {
       global $bp;
          bp_core_remove_subnav_item( $bp->activity->slug, 'mentions' );
       }
    add_action( 'init', 'remove_mention_nav' );

    I’ve not come across any problems since adding the function back to functions.php so perhaps it was just a glitch.

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

You must be logged in to reply to this topic.