{"id":3534,"date":"2008-09-07T19:38:18","date_gmt":"2008-09-07T19:38:18","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/autoclose\/"},"modified":"2026-09-10T13:13:27","modified_gmt":"2026-09-10T13:13:27","slug":"autoclose","status":"publish","type":"plugin","link":"https:\/\/fa-af.wordpress.org\/plugins\/autoclose\/","author":2277,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"3.2.0","stable_tag":"3.2.0","tested":"7.1.1","requires":"6.6","requires_php":"7.4","requires_plugins":null,"header_name":"Auto-Close Comments, Pingbacks and Trackbacks","header_author":"Ajay D'Souza","header_description":"","assets_banners_color":"182129","last_updated":"2026-09-10 13:13:27","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/wzn.io\/donate-wz","header_plugin_uri":"https:\/\/webberzone.com\/plugins\/autoclose\/","header_author_uri":"https:\/\/webberzone.com","rating":5,"author_block_rating":0,"active_installs":200,"downloads":23932,"num_ratings":1,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0":{"tag":"1.0","author":"Ajay","date":"2008-09-18 16:47:31","revision":65457},"1.1":{"tag":"1.1","author":"Ajay","date":"2008-12-20 17:40:59","revision":81384},"1.2":{"tag":"1.2","author":"Ajay","date":"2009-01-03 12:20:25","revision":83797},"1.3.1":{"tag":"1.3.1","author":"Ajay","date":"2014-03-16 22:29:32","revision":876361},"1.4":{"tag":"1.4","author":"Ajay","date":"2014-03-17 07:35:46","revision":876466},"1.5":{"tag":"1.5","author":"Ajay","date":"2014-08-15 23:50:32","revision":966702},"1.6":{"tag":"1.6","author":"Ajay","date":"2015-04-18 14:53:33","revision":1138030},"2.0.0":{"tag":"2.0.0","author":"Ajay","date":"2019-03-16 09:58:38","revision":2051598},"2.1.0":{"tag":"2.1.0","author":"Ajay","date":"2022-05-27 15:26:01","revision":2732751},"2.2.0":{"tag":"2.2.0","author":"Ajay","date":"2024-11-12 22:21:47","revision":3186751},"3.0.0":{"tag":"3.0.0","author":"Ajay","date":"2025-11-29 05:53:23","revision":3405609},"3.1.0":{"tag":"3.1.0","author":"Ajay","date":"2026-03-29 16:53:21","revision":3493922},"3.1.1":{"tag":"3.1.1","author":"Ajay","date":"2026-07-04 13:06:31","revision":3595981},"3.1.2":{"tag":"3.1.2","author":"Ajay","date":"2026-08-13 08:56:53","revision":3644696},"3.2.0":{"tag":"3.2.0","author":"Ajay","date":"2026-09-10 13:13:27","revision":3689949}},"upgrade_notice":{"3.2.0":"<p>Behavior change: scheduled revision cleanup now keeps revisions within each post&#039;s retention limit and newer than the age cutoff (90 days) instead of deleting all; check the Revisions tab if enabled. On fortnightly or monthly maintenance, confirm a next run on the Tools page. Per-post close dates are now applied by one hourly sweep instead of one cron event per post, so a close happens within the hour after the time you set rather than to the exact minute; the <code>acc_close_dates_recurrence<\/code> filter sweeps more often.<\/p>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":"1"},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3276926,"resolution":"128x128","location":"assets","locale":"","width":128,"height":128},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3276926,"resolution":"256x256","location":"assets","locale":"","width":256,"height":256}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":3612322,"resolution":"1544x500","location":"assets","locale":"","width":1544,"height":500},"banner-772x250.png":{"filename":"banner-772x250.png","revision":3612322,"resolution":"772x250","location":"assets","locale":"","width":772,"height":250}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0","1.1","1.2","1.3.1","1.4","1.5","1.6","2.0.0","2.1.0","2.2.0","3.0.0","3.1.0","3.1.1","3.1.2","3.2.0"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":2306193,"resolution":"1","location":"assets","locale":"","width":947,"height":640},"screenshot-2.png":{"filename":"screenshot-2.png","revision":2306193,"resolution":"2","location":"assets","locale":"","width":945,"height":602},"screenshot-3.png":{"filename":"screenshot-3.png","revision":3276926,"resolution":"3","location":"assets","locale":"","width":2344,"height":1634},"screenshot-4.png":{"filename":"screenshot-4.png","revision":2306193,"resolution":"4","location":"assets","locale":"","width":945,"height":679},"screenshot-5.png":{"filename":"screenshot-5.png","revision":2306193,"resolution":"5","location":"assets","locale":"","width":935,"height":728}},"screenshots":{"1":"Autoclose Settings - General","2":"Autoclose Settings - Comments","3":"Autoclose Settings - Pingbacks\/Trackbacks","4":"Autoclose Settings - Revisions","5":"Autoclose Tools"}},"plugin_section":[],"plugin_tags":[2656,107,3026,6243,599],"plugin_category":[44,54],"plugin_contributors":[78250,78249],"plugin_business_model":[],"class_list":["post-3534","plugin","type-plugin","status-publish","hentry","plugin_tags-anti-spam","plugin_tags-comments","plugin_tags-pingback","plugin_tags-revisions","plugin_tags-spam","plugin_category-discussion-and-community","plugin_category-security-and-spam-protection","plugin_contributors-ajay","plugin_contributors-webberzone","plugin_committers-ajay","plugin_committers-webberzone"],"banners":{"banner":"https:\/\/ps.w.org\/autoclose\/assets\/banner-772x250.png?rev=3612322","banner_2x":"https:\/\/ps.w.org\/autoclose\/assets\/banner-1544x500.png?rev=3612322","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/autoclose\/assets\/icon-128x128.png?rev=3276926","icon_2x":"https:\/\/ps.w.org\/autoclose\/assets\/icon-256x256.png?rev=3276926","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/autoclose\/assets\/screenshot-1.png?rev=2306193","caption":"Autoclose Settings - General"},{"src":"https:\/\/ps.w.org\/autoclose\/assets\/screenshot-2.png?rev=2306193","caption":"Autoclose Settings - Comments"},{"src":"https:\/\/ps.w.org\/autoclose\/assets\/screenshot-3.png?rev=3276926","caption":"Autoclose Settings - Pingbacks\/Trackbacks"},{"src":"https:\/\/ps.w.org\/autoclose\/assets\/screenshot-4.png?rev=2306193","caption":"Autoclose Settings - Revisions"},{"src":"https:\/\/ps.w.org\/autoclose\/assets\/screenshot-5.png?rev=2306193","caption":"Autoclose Tools"}],"raw_content":"<!--section=description-->\n<p>Spammers target old posts in a hope that you won't notice the comments on them. Why not stop them in their tracks by just shutting off comments and pingbacks? <a href=\"https:\/\/webberzone.com\/plugins\/autoclose\/\">Auto-Close Comments, Pingbacks and Trackbacks<\/a> lets you automatically close comments, pingbacks and trackbacks on your posts, pages and custom post types.<\/p>\n\n<p>You can also choose to keep comments, pingbacks, or trackbacks open on certain posts, pages or custom post types. Just enter a comma-separated list of post IDs in the Settings page.<\/p>\n\n<p>An extra feature is the ability to delete post revisions or limit their number.<\/p>\n\n<p>Found a bug or want to contribute? PRs and issues welcome on <a href=\"https:\/\/github.com\/WebberZone\/autoclose\">GitHub<\/a>. For help, use the <a href=\"https:\/\/wordpress.org\/support\/plugin\/autoclose\">support forum<\/a> or <a href=\"https:\/\/webberzone.com\/support\/\">premium support<\/a>.<\/p>\n\n<h3>Key Features<\/h3>\n\n<ul>\n<li>Close (or open) comments on posts, pages, attachments and even Custom Post Types<\/li>\n<li>Close (or open) pingbacks and trackbacks as well across all post types. You can also choose to delete them<\/li>\n<li>Schedule a cron job to automatically close comments, pingbacks and trackbacks daily<\/li>\n<li>Delete all post revisions or limit the number of revisions by post type<\/li>\n<li>Exclude specific post IDs from auto-close<\/li>\n<li>Exclude posts in specific categories, tags, or any taxonomy term from auto-close<\/li>\n<li>Reopen comments automatically when a post is updated, with a configurable open window<\/li>\n<li>Receive an email summary after each scheduled cron run showing what was closed or deleted<\/li>\n<li>Block self-pings and custom ping URLs<\/li>\n<li>Schedule the closing of comments, pingbacks, and trackbacks for the current post<\/li>\n<\/ul>\n\n<!--section=installation-->\n<h4>WordPress install<\/h4>\n\n<ol>\n<li>Navigate to Plugins within your WordPress Admin Area<\/li>\n<li>Click \"Add new\" and in the search box enter \"autoclose\"<\/li>\n<li>Find the plugin in the list (usually the first result) and click \"Install Now\"<\/li>\n<\/ol>\n\n<h4>Manual install<\/h4>\n\n<ol>\n<li>Download the plugin<\/li>\n<li>Extract the contents of autoclose.zip to wp-content\/plugins\/ folder. You should get a folder called autoclose.<\/li>\n<li>Activate the Plugin in WP-Admin.<\/li>\n<li>Go to Settings \u00bb AutoClose to configure<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"how%20do%20i%20exclude%20a%20post%20from%20auto-closing%3F\"><h3>How do I exclude a post from auto-closing?<\/h3><\/dt>\n<dd><p>Enter the post ID in the settings page under \"Exclude posts\".<\/p><\/dd>\n<dt id=\"will%20this%20plugin%20work%20with%20custom%20post%20types%3F\"><h3>Will this plugin work with custom post types?<\/h3><\/dt>\n<dd><p>Yes! Auto-Close works with posts, pages, attachments, and any registered custom post types.<\/p><\/dd>\n<dt id=\"can%20i%20delete%20or%20limit%20revisions%3F\"><h3>Can I delete or limit revisions?<\/h3><\/dt>\n<dd><p>Yes, you can delete all revisions or set a limit per post type from the settings page.<\/p><\/dd>\n<dt id=\"is%20auto-close%20still%20being%20actively%20developed%3F\"><h3>Is Auto-Close still being actively developed?<\/h3><\/dt>\n<dd><p>Following 3.2.0, Auto-Close moves to maintenance-only support: no new features are planned, but it continues to receive security, compatibility, and regression fixes. Your settings, scheduled jobs, and existing behavior are unaffected by this change.<\/p><\/dd>\n<dt id=\"how%20can%20i%20report%20security%20bugs%3F\"><h3>How can I report security bugs?<\/h3><\/dt>\n<dd><p>You can report security bugs through the Patchstack Vulnerability Disclosure Program. The Patchstack team help validate, triage and handle any security vulnerabilities. <a href=\"https:\/\/patchstack.com\/database\/wordpress\/plugin\/autoclose\/vdp\">Report a security vulnerability.<\/a><\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>3.2.0<\/h4>\n\n<p>Release date: 10 September 2026\nRelease post: https:\/\/webberzone.com\/announcements\/auto-close-v3-2\/<\/p>\n\n<p><strong>Added<\/strong><\/p>\n\n<ul>\n<li>Added WP-CLI commands for status, settings, maintenance runs, comments, pings, pingbacks, revisions, close dates, and cron.<\/li>\n<li>Added age- and retention-aware revision pruning with a 90-day default cutoff and the <code>acc_revisions_prune_limit<\/code> and <code>acc_revisions_prune_cutoff<\/code> filters.<\/li>\n<li>Independent per-post-type age overrides for closing comments and pingbacks\/trackbacks, alongside the existing global age.<\/li>\n<li>An optional approved-comment count threshold: comments close once a post reaches the configured count, in addition to the age rule.<\/li>\n<li>A read-only Preview changes option on the Tools page for the closing algorithm, pingback\/trackback deletion, and revision deletion, showing matching counts, scope, and a sample of affected posts before you run them.<\/li>\n<li>An AutoClose Status panel on the Tools page showing scheduling health, the next run, and the latest run's outcome, with a Repair schedule action.<\/li>\n<li>An on-demand Configuration Report on the Tools page covering effective settings, exception counts, close-date and reopen-window counts, and revision policies, without post content, comment text, or credentials.<\/li>\n<li>Guidance on the Settings General tab explaining what stays and what stops if the plugin is deactivated.<\/li>\n<\/ul>\n\n<p><strong>Changed<\/strong><\/p>\n\n<ul>\n<li>Scheduled revision cleanup now respects each post's retention limit and age cutoff; autosaves remain protected and the Tools delete-all action remains explicit.<\/li>\n<li>Added lifecycle reconciliation for scheduled close dates and labeled cron schedule times as UTC.<\/li>\n<li>Improved bulk maintenance with supported public post-type scopes and truthful no-op and partial results.<\/li>\n<li>Migrated legacy <code>close<\/code> discussion statuses to WordPress's canonical <code>closed<\/code> value once per site.<\/li>\n<li>Per-post close dates no longer schedule one cron event per post. A single hourly <code>autoclose_close_dates_event<\/code> sweep applies every due date, so the number of scheduled events no longer grows with the number of close dates \u2014 on a large site the old behaviour could push megabytes into the autoloaded <code>cron<\/code> option and slow every request. Existing per-post events are removed automatically on upgrade, close dates themselves are unaffected, and a date now closes at the first sweep after its time rather than to the exact minute. Use <code>acc_close_dates_recurrence<\/code> to sweep more often.<\/li>\n<li>Preserved existing revision settings and added an admin notice explaining the new cleanup policy.<\/li>\n<\/ul>\n\n<p><strong>Fixed<\/strong><\/p>\n\n<ul>\n<li>Close-date and revision-restore updates no longer reopen closed comments.<\/li>\n<li>Fixed close-date results, date controls, DST validation, and discussion age cutoff calculations.<\/li>\n<li>Revision deletion now removes orphaned metadata and term relationships.<\/li>\n<li>Fixed stale caches, cache invalidation notifications, and per-site cron notification counts.<\/li>\n<li>Fixed the <code>fortnightly<\/code> and <code>monthly<\/code> maintenance recurrences, which were selectable but never registered, so choosing either scheduled no maintenance event at all. Sites on either setting should confirm a next run on the Tools page.<\/li>\n<li>Drafts, auto-drafts, and other unpublished posts are no longer closed, so a post is never published with its discussion already closed. The eligible statuses can be adjusted with the new <code>acc_close_post_statuses<\/code> filter.<\/li>\n<li>Posts with an empty <code>post_date_gmt<\/code> no longer bypass the configured age cutoff.<\/li>\n<li>Activation now schedules the first maintenance run at the next occurrence of the configured time instead of a time that has already passed today.<\/li>\n<li>A repeatedly failing close-date restoration now stops rescheduling itself instead of retrying every minute.<\/li>\n<li>A failed pingback\/trackback deletion query is now reported as a failure instead of as zero deletions.<\/li>\n<\/ul>\n\n<h4>Earlier versions<\/h4>\n\n<p>For the changelog of earlier versions, please refer to the <a href=\"https:\/\/github.com\/WebberZone\/autoclose\/releases\">releases page on GitHub<\/a>.<\/p>","raw_excerpt":"Auto-Close keeps your site clean by automatically closing comments, pingbacks, and trackbacks\u2014so you can focus on content, not cleanup.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/fa-af.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/3534","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fa-af.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/fa-af.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/fa-af.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=3534"}],"author":[{"embeddable":true,"href":"https:\/\/fa-af.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/ajay"}],"wp:attachment":[{"href":"https:\/\/fa-af.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=3534"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/fa-af.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=3534"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/fa-af.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=3534"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/fa-af.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=3534"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/fa-af.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=3534"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/fa-af.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=3534"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}