這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Post Expiration Date

外掛說明

This is a free, lightweight plugin designed to make WordPress posts expire at a set time, on a given date. This was done in the simplest, most expedient manner possible so conflicts should be minimal. Dependencies are minimal as well. WP Cron is not used or required. You can choose from a JQuery datetime picker or the browser’s native option.

How it works: You can set an expiration date (an expiry) for a post by selecting the date and time. This uses local time, not GMT, UTC, etc. When the expiration date and time have been passed the post will be moved from Published to Draft status. Picking a date/time is optional — not all posts require an expiry.

Post Expiration Date plugin is ideal for use with coupons, deals, sales, and any other events where would would want the corresponding WordPress post to be hidden (or in some way changed) at a scheduled time.

螢幕擷圖

  • /assets/screenshot-1.png
  • /assets/screenshot-2.png
  • /assets/screenshot-3.png

安裝方式

  1. Upload Post Expiration Date to the /wp-content/plugins/ directory
  2. Activate through the ‘Plugins’ menu in WordPress
  3. Review the “Post Expiration” options in WordPress’ Settings tab

常見問題集

What date-time format is the expiration date stored in?

February 2, 2019 1:01 AM will be stored as “2019-02-02T01:01” in your postmeta table.

Why does the date/time formatted like that?

We opted to use the ISO 8601 standard for date and time format. This can be manipulated if you’d like to view it in other ways, as we do in the “Exp. Date” column of the Posts page.

My date-time entry text box is blank! What do I do?

This is because your browser does not support input type=”datetime-local”. If this happens to you please use the settings to change to the “Universal” picker or use Chrome for your browser. Newer verions of this plugin (v1.2 and above) fix this issue and give you the option for different datetime pickers.

使用者評論

2019 年 11 月 6 日
Caused my WP live site to get hacked. No problems after I deactivated this pile of rubbish.
2019 年 3 月 5 日
I've been using this for a month and it's exactly what I was looking for. The date/time picker is easy to use and I appreciate the display of expire dates on the "all posts" page. Thanks!
閱讀全部 12 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Post Expiration Date〉的開發相關工作。

參與者

將〈Post Expiration Date〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

v1.3

  • Added ability to expire Pages
  • Added Settings link to Plugin page

v1.2

  • Added Settings page
  • Option to choose between native and universal input types.
  • Fix bug where datetime could not be removed from database
  • Added clear button for Universal datetime picker

1.1.0

  • Add datetime picker support for all browsers.
  • Cleaned up the

1.0.0

  • Released!