AutoClose v2.0.0

I’ve released a major update to Auto-Close Comments, Pingbacks and Trackbacks a.k.a AutoClose v2.0.0. The last update to this plugin was in 2015 and this has continued to work with the newer versions of WordPress.

Autoclose is an easy to use WordPress plugin that allows you to automatically close comments, pingbacks and trackbacks on your posts. You also have some buttons that let you delete post revisions, delete pingbacks and trackbacks.

I was cleaning up broken links on Techtites and realised most of these were pingbacks and trackbacks. I wanted an easy way to just delete them all! Hence, AutoClose v2.0.0.

You’ll need to reactivate the plugin

The plugin file has been renamed from ald-autoclose.php to autoclose.php which will cause WordPress to deactivate the plugin when upgraded. You will need to activate this again from the Plugins page.

The reactivation should also upgrade the plugin settings to v2.0.0. You can also Network Activate the plugin on WordPress Multisite and it should upgrade settings across all the sites.

Code rewrite and Settings API

I’ve rewritten AutoClose v2.0.0 with cleaner code to better WordPress standards. The plugin also uses the Settings API in WordPress to register and update the settings. You will now find a clean tabbed interface that allows you to configure the general options, activate the WordPress cron for scheduled closing. Further configuration is available under the other tabs.

AutoClose v2.0.0 settings
AutoClose v2.0.0 settings

New Tools page

You’ll also find a link to a new Tools page that has a whole series of buttons.

AutoClose v2.0.0 Tools
AutoClose v2.0.0 Tools

You’ll find buttons to open and close Comments and Pings (both pingbacks and trackbacks). There is also a new button to delete pings. This is ideal for those who no longer want those outdated pingbacks and trackbacks on their site.

There is also a button to delete the settings from v1.x. Please use this only after you’re fully happy with the upgraded settings.

Roadmap

Although this plugin has relatively lower usage vs my other plugins, I think it serves a niche set of users who want more control as to what happens with their older posts. I have a few things in mind that I’d like to implement in future versions:

  • Revision control: New option to configure the number of revisions that WordPress will maintain
  • Better deletion function for revisions – potentially using ajax and wp_delete_post_revision()
  • Better deletion of comments using wp_delete_comment(), again using ajax

I will keep maintaining a list of features to implement can be found in the Issues page on Github.

Detailed changelog in AutoClose v2.0.0

  • Features:
    • New Tools page with several buttons to open, close and delete comments, pingbacks and trackbacks. You can find the link in the Settings page under the main header
    • New button to delete all pingbacks and trackbacks in the Tools page
    • Activating the plugin on Multisite should upgrade settings from v1.x
    • Uninstalling the plugin on Multisite will delete the settings from all sites
  • Enhancements:
    • Migrated options to the Settings API
  • Modifications:
    • Main plugin file has been renamed to autoclose.php
    • Cron hook renamed from ald_acc_hook to acc_cron_hook

Download Auto-Close Comments, Pingbacks and Trackbacks v2.0.0

Share this post with your friends!

Leave a Reply

Your email address will not be published. Required fields are marked *

Get more stuff like this
in your inbox

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Thank you for subscribing.

Something went wrong.