Override Comment Options

外掛說明

Override WordPress “automatically close comments” option and leave comments open on any individual posts.

Want to keep comments open on a few old posts? This plugin is for you. Here’s how it works:

In the WordPress Discussion Settings, there is an option called “Automatically close comments on posts older than” whatever specified number of days. When this setting is enabled, comments will be disabled on any posts that are past the deadline, whatever “x” number of days.

What WordPress is missing is a simple way to override that global option on a per-post basis. That’s exactly what this plugin does. For any post that is past the comment deadline, this plugin will display a small meta box on the “Edit Post” screen for each post. There you can check the box to enable comments on the post. Comments will then remain open for that post indefinitely, until the box is unchecked or the plugin is uninstalled.

Note: The override meta box will not be displayed if the post is not past the comment deadline (whatever “x” number of days).

Check out the screenshot below to get a better idea.

Features

  • Clean, secure code
  • Written according to the WP API
  • Simple, lightweight, and flexible
  • Localized and translation ready
  • Cleans up after itself when uninstalled

For more details about how it works, visit the Installation docs.

螢幕擷圖

  • OCO Meta Box displayed on Edit Post screen

安裝方式

Installation

  1. Upload the plugin to your blog and activate
  2. Make sure the Discussion setting “Automatically close comments” is enabled
  3. Done!

More info on installing WP plugins

Usage

This plugin does not provide any options page. Instead, it displays a small Meta Box in the sidebar on the “Edit Post” screen. There you can check the box to enable comments on the post. Comments will then remain open for that post indefinitely, until the box is unchecked or the plugin is uninstalled.

Note: The override meta box will not be displayed if the post is not past the comment deadline (whatever “x” number of days).

Check out the screenshot on the plugin homepage to get a better idea.

Like the plugin?

If you like Override Comment Options, please take a moment to give a 5-star rating. It helps to keep development and support going strong. Thank you!

常見問題集

Questions? Feedback?

Send any questions or feedback via my contact form. Thanks! 🙂

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈Override Comment Options〉的開發相關工作。

參與者

將〈Override Comment Options〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

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

變更記錄

1.8 (2022/05/15)

  • Tests on WordPress 6.0

1.7 (2022/01/13)

  • Updates some links to external resources
  • Changes minimum required WP version to 4.6
  • Tests on WordPress 5.9

1.6 (2021/07/13)

  • Tests on WordPress 5.8

1.5 (2021/02/09)

  • Tests on PHP 7.4 and 8.0
  • Tests on WordPress 5.7

1.4 (2020/11/10)

  • Tests on PHP 7.4 and 8.0
  • Tests on WordPress 5.6

1.3 (2020/08/07)

  • Refines readme/documentation
  • Tests on WordPress 5.5

1.2 (2020/03/13)

  • Fixes bug where could not open comments on certain posts
  • Fixes PHP Notice (property of non-object)
  • Tests on WordPress 5.4

1.1 (2019/10/27)

  • Tests on WordPress 5.3

1.0 (2019/10/15)

  • Initial Release