Support » Plugin: Menu Item Visibility Control » Expire date

  • simondev



    Is it possible to set an start and expire date to all users ?

    If i have a Summer campaign page, that I only want to be visible from 1 july to 14 july ?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author shazdeh


    Sure, you can use the strtotime() PHP function (docs: to check dates, see:

    strtotime( 'now' ) >= strtotime( '2019-07-01' ) && strtotime( 'now' ) <= strtotime( '2020-07-14' )

    That checks if current time is the specified dates and if so shows the menu item. The menu item will not be displayed if outside that date range.



    Is it not possible to make it alittle bit userfriendly ?

    Plugin Author shazdeh


    Sorry what do you mean?

    You only need to plop in your desired dates in the snippet. “2019-07-01” is the start date, “2020-07-14” is the end date. The menu will only be displayed between those two dates.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Expire date’ is closed to new replies.