I am working on a site and need to edit the navbits so that certain parts do not show up. I have done what I thought was the way to do this by creating a plugin at the navbits hook with the below code. However even though the statement is true, the $skip_nav_entry does not seem to take the entry out of the array. I have looked at the function in the function.php file and from what I can tell, this code should work.
Code:
if ($nav_title == 'Forum')
{
$skip_nav_entry = true;
}
Thanks in advance for any help.
Nevermind, I figured it out. The issue was that I am using DBSEO and that addon changes some stuff.