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” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

更新日志

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