Comment Timeout
This plugin extends the comment closing functionality in WordPress to allow you to extend the discussion time when older posts have recent comments accepted, or to override the comment closing time on a post by post basis. Note: PHP 4 is no longer supported. As of version 2.1, Comment Timeout requir
This plugin extends the comment closing functionality in WordPress to allow you to extend the discussion time when older posts have recent comments accepted, or to override the comment closing time on a post by post basis.
Note: PHP 4 is no longer supported. As of version 2.1, Comment Timeout requires PHP 5.2 or later. If you are still using PHP 4, you should use Comment Timeout 2.0.1.
Configuration
You can change various settings globally on the “Comment Timeout” page under the “Options” tab on the WordPress dashboard. Most of the options are fairly self-explanatory.
You can also change options on a per-post basis by looking for the “Comment Timeout” section in the sidebar of the post or page editor.
Template tags
Comment Timeout 2.1 introduces two new functions that you can use in your theme:
get_comment_timeout()
Returns the UTC time, as a Unix timestamp, when comments will be closed for the current post.
the_comment_timeout($relative, $dateformat, $before, $after, $moderated)
Formats and displays the date and time after which comments will no longer be accepted on this post. Parameters are:
- $relative : Set this to true if you want to display the date in terms of the time remaining (for instance “in 3 weeks”). Set it to false to display it as an absolute date.
- $dateformat : The format in which the date should be displayed, as used by the PHP date() function. If you set this to false , it will use the date format that you have configured globally for your WordPress installation. If $relative is set to true , this parameter is ignored.
$before : The HTML to insert before the date that comments will be closed. $after : The HTML to insert after the date that comments will be closed. $moderated : The HTML to display when late comments are being sent to the moderation queue rather than being rejected outright.
Development and reporting bugs
When reporting bugs, please provide me with the following information:
- 01Which version of Comment Timeout you are using;
- 02Which version of WordPress you are using;
- 03The URL of your blog;
- 04