Removing items from custom menu

Removing items from custom menu

by Farhan Karmali -
Number of replies: 3
Picture of Core developers Picture of Plugin developers Picture of Testers

Hello, I decided I wont mess up the other thread about custom menu and start a new one.

 

I am using the clean bootstrap theme and overriden renders to add new items to my custom menu only for the course page .. Now the issue is , I want to remove the custom menu items which come from the database

Any direct function where I can remove just like I added

$menu->add($branchlabel, $branchurl, $branchtitle, $branchsort);

Thanks in advanced

 

Average of ratings: -
In reply to Farhan Karmali

Re: Removing items from custom menu

by Farhan Karmali -
Picture of Core developers Picture of Plugin developers Picture of Testers

Any help ?

In reply to Farhan Karmali

Re: Removing items from custom menu

by Mary Evans -
Picture of Core developers Picture of Documentation writers Picture of Peer reviewers Picture of Plugin developers Picture of Testers

If you don't want any menu items in your menu then do not add them to the list in Appearance > Theme > Theme settings page.

In reply to Mary Evans

Re: Removing items from custom menu

by Farhan Karmali -
Picture of Core developers Picture of Plugin developers Picture of Testers

Hello Mary,

My questions is how to programmatically remove menu items, I want to let my client make use of adding custom menu items when they want on the menu, but on the course page, those items are removed and replaced by items I add through php code