Skip to content

Instantly share code, notes, and snippets.

@stevenkword
Last active August 29, 2015 14:02
Show Gist options
  • Save stevenkword/ac15beeacff38623de2d to your computer and use it in GitHub Desktop.
Save stevenkword/ac15beeacff38623de2d to your computer and use it in GitHub Desktop.
<?php
// Remove Messages->Notices
function skw_remove_notices_subnav() {
global $bp;
if ( $bp->current_component == $bp->messages->slug ) {
bp_core_remove_subnav_item( $bp->messages->slug, 'notices' );
}
}
add_action( 'wp', 'skw_remove_notices_subnav', 11 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment