Support » Fixing WordPress » automatically remove invalid menu items

  • macpheek

    (@macpheek)



    Hello,

    I have a website with about 20 products that all set to expire on certain dates. Each of my products are linked to my main menu. When a product expires, it goes into the trash and becomes an invalid item on my menu. Does anyone know of a way I can automatically remove invalid menu items from my menu? Just to save me having to login and manually do it all the time.
    Also does anyone know of a way I can automatically add any new products to my menu?
    Thanks, any help will be appreciated!

Viewing 1 replies (of 1 total)
  • Subrata Sarkar

    (@subrataemfluence)

    To my understanding you need to check it before you are actually building the menu system like if Product-A is not Expired then show it in menu. This will automatically remove an expired product from your menu system.

    I don’t know about any shortcut of doing this.

    On this note, how you are making products to appear in your menu system as you add them?

Viewing 1 replies (of 1 total)
  • The topic ‘automatically remove invalid menu items’ is closed to new replies.