跳到内容

Menu Expiration Control

v1.2

Raihan Reza · 2024年10月29日 上架

Adds start and expiration dates with time control to menu items in WordPress, controlling their visibility based on the set date and time range.

正在使用
80+
评分
5.0 / 5
累计下载
1,097
最近更新
2025年12月16日
2 条评价需要 WordPress 5.0+已测试到 6.9.12PHP 7.0+

The Menu Expiration Control plugin adds start and expiration dates along with precise time control to WordPress menu items, allowing you to control exactly when each menu item is displayed. This feature is useful for temporary promotions, seasonal menus, flash sales, limited-time offers, or any situation where menu items should only be visible for a specific period.

Key Features:

  • Date Control: Set start and stop dates for menu items
  • Time Control: Specify exact hours and minutes (12-hour format with AM/PM)
  • jQuery UI Datepicker: Easy-to-use calendar interface for date selection
  • Dropdown Selectors: User-friendly hour and minute dropdowns for precise time setting
  • Automatic Visibility: Menu items automatically appear and disappear based on your schedule
  • Flexible Scheduling: Set only dates, only times, or both – plugin adapts to your needs
  • WordPress 6.9 Compatible: Fully tested and compatible with the latest WordPress version

Perfect For:

  • Limited-time promotional menu items
  • Seasonal navigation links
  • Event-specific menus
  • Flash sale announcements
  • Temporary campaign links
  • Holiday specials
  • Time-sensitive content navigation

Support

If you encounter any issues or have questions, please contact us at [https://elvirainfotech.com/contact-us/].

You can also visit our website for more information and support resources.

Technical Details

File Structure:
menu-expiration-control/
├── menu-expiration-control.php (Main plugin file)
└── assets/
└── jquery-ui.css (Datepicker styling)

Hooks Used:
* wp_nav_menu_item_custom_fields – Adds custom fields to menu items
* wp_update_nav_menu_item – Saves custom field data
* wp_nav_menu_objects – Filters menu items based on date/time
* admin_enqueue_scripts – Loads datepicker assets

Browser Compatibility:
* Chrome/Edge (latest)
* Firefox (latest)
* Safari (latest)
* Mobile browsers supported

Privacy Policy

This plugin does not collect, store, or transmit any user data. All date and time settings are stored locally in your WordPress database as post metadata.

License

This plugin is licensed under the GPLv2 or later license.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums