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

DX Out of Date

描述

DX Out of Date allows you to display a notification box on your posts
when a given amount of time has passed. Quite handy when writing tutorials
or any content that might get outdated due to external factors – now you
could automatically notify your readers after a given period.

You can configure the expiration time of your posts in the admin panel. Valid time units are days, months and years.

Currently the plugin options are:

  • Period – “amount” of “duration” units (1 to 40)
  • Duration frame (days, months, years)
  • Message – the message format for the notification box
  • Enable by default – a checkbox for enabling the message on all posts by default
  • Enable post status in Dashboard – a checkbox for adding an extra column in the Dashboard for the outdated status of posts
  • Post types to affect – allows you to choose which post types for display the message for
  • Position of the message – choose whether the message should be displayed at the top or at the bottom of a post’s content
  • Background color – Choose a background color for the message
  • Text color – Choose a text color for the message
  • Custom CSS – Add custom CSS rules to the message box

螢幕截圖

  • DX Out of Date Settings page.
  • Out of date message in old post.1. Admin options page

安裝

  1. Upload the dx-out-of-date folder in the /wp-content/plugins/ directory
  2. Activate the DX Out of Date plugin through the ‘Plugins’ menu in WordPress
  3. Go to Settings -> DX Out of Date
  4. Configure your time period and customization settings
  5. Save the form and you’re good to go!

Other ways to display the “Out of Date” box snippet:

  1. Use the [out_of_date] shortcode
  2. Call the DX_Out_Of_Date::outdated_box_generator() function right before rendering the post

常見問題

How to configure the duration/period settings?

These are the options that define what an “outdated” post means. For instance, selecting months in Duration frame and 6 in Period
means that every post older than 6 months would be qualified as “outdated”.

Can I limit the message to show only on certain posts/post types?

From the Out of Date Settings page, you can choose which post types will have the outdated message (Default is Posts only).
In the Post Edit page you have a checkbox, which toggles the message for that specific post. The Default state of that checkbox can be changed
from the Plugin Settings page via the “Enable the message by default on all outdated posts” checkbox.

Can I customize the Outdated Message?

You can customize the content of the message from the “Message” field in the Out of Date Settings page. On top of that, you can
change the Background and Text colors to your liking.

Why would I need this plugin?

If you write tutorials or articles related to products/services in a given state,
updating them could affect the validity of your resources. A good example is one of
the resources that led to building the plugin – Brandon’s blog,
with his custom approach for marking tutorials as outdated.

評價

There are no reviews for this plugin.

貢獻者及開發者

“DX Out of Date” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 DX Out of Date 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

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

修改日誌

2.0

  • Applied WPCS to all files
  • Removed unused CSS files
  • Optimized CSS delivery
  • Replaced deprecated functions
  • Added doc comments to all functions
  • Updated screenshots
  • Updated readme.md file
  • Code speed optimizations
  • Removed notification from archive views
  • Fixed wrong translation domains
  • Fixed typos
  • Made the default options make more sense
  • Improved the way we check if a post is expired
  • Added a “Settings” link for the plugin in the Plugins page
  • Added support for Block-based themes (e.g. Twenty Twenty Two)
  • Improved the “Enable Message by Default” functionality
  • Added an option to choose which post types to display the notification for

1.0.1

  • Fixed notice when banner is not visible

1.0

  • Added new section – Enable the display of the status in post
  • Refactor section – Choose a skin for your template
  • Added new section – Choose the position of the message

0.3

  • First stable plugin version
  • Admin settings
  • Single view display
  • Skins
  • Time options