{"id":5638,"date":"2009-05-25T23:42:22","date_gmt":"2009-05-25T23:42:22","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/delete-spam-daily\/"},"modified":"2009-05-28T17:35:54","modified_gmt":"2009-05-28T17:35:54","slug":"delete-spam-daily","status":"publish","type":"plugin","link":"https:\/\/szl.wordpress.org\/plugins\/delete-spam-daily\/","author":110900,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0.2","stable_tag":"1.0.2","tested":"2.7.1","requires":"2.1.0","requires_php":"","requires_plugins":"","header_name":"Delete Spam Daily","header_author":"Brock Angelo","header_description":"","assets_banners_color":"","last_updated":"2009-05-28 17:35:54","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/brockangelo.com\/wordpress\/plugins\/delete-spam-daily","header_plugin_uri":"http:\/\/brockangelo.com\/wordpress\/plugins\/delete-spam-daily\/","header_author_uri":"http:\/\/brockangelo.com","rating":5,"author_block_rating":0,"active_installs":80,"downloads":9452,"num_ratings":1,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":"1"},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0","1.0.1","1.0.2"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1538920","resolution":"1","location":"plugin"}},"screenshots":{"1":"Pretty simple."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[107,4567,153,2872,599],"plugin_category":[44,54,59],"plugin_contributors":[84148],"plugin_business_model":[],"class_list":["post-5638","plugin","type-plugin","status-publish","hentry","plugin_tags-comments","plugin_tags-cron","plugin_tags-database","plugin_tags-delete","plugin_tags-spam","plugin_category-discussion-and-community","plugin_category-security-and-spam-protection","plugin_category-utilities-and-tools","plugin_contributors-brockangelo","plugin_committers-brockangelo"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/delete-spam-daily.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/delete-spam-daily\/trunk\/screenshot-1.png?rev=1538920","caption":"Pretty simple."}],"raw_content":"<!--section=description-->\n<p>This plugin schedules a daily event using wp_cron that deletes all comments marked \"spam\" in the database, then optimizes the comments table.<\/p>\n\n<p>Brief reason why I made such a low-tech plugin:<\/p>\n\n<p>Akismet catches all the spam, but when I was looking at the size of my backups one day, \nI noticed that there were large numbers of comment spam across several sites that were undeleted and they\nmade the databases fairly large. So I setup a cron job on my server that deletes the spam.<\/p>\n\n<p>Since I had never written a plugin, I thought this might be helpful for those who do not have \na dedicated server, shell access to their site, or the knowledge of (or interest in ) cron to set this up.<\/p>\n\n<p>Spam is not deleted until you start the schedule after the plugin is activated. I created buttons\nto start and stop the schedule if you need that layer of control. There is also a button for deleting all spam manually.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the <code>delete-spam-daily<\/code> folder to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>Look under \"Settings\" --&gt; \"Delete Spam Daily\" to activate the schedule.<\/li>\n<li>You can start and stop the schedule from the \"Delete Spam Daily\" menu.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>What time does comment spam get deleted?<\/dt>\n<dd><p>The first time you start the schedule, spam gets deleted. \nSubsequent spam will be scheduled to delete every 24 hours after the first activation.<\/p><\/dd>\n<dt>If I de-activate this plugin, will it continue to delete spam daily?<\/dt>\n<dd><p>No. The cron job is cleared upon deactivation.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<ul>\n<li>Version 1.0.2 - 5.28.09: Now optimizes the <code>wp_comments<\/code> table after spam is deleted. Updated DB call to allow for alternate wordpress table prefix. <\/li>\n<li>Version 1.0.1 - 5.26.09: Minor update. <code>add_action<\/code> was added to the \"Delete Spam Daily\" button so it would actually delete spam once a day. :-) In addition to a \"Stop Deleting Spam\" button, a button was added that reschedules the cron to happen in 1 minute so you can be sure your crons are working right away. <\/li>\n<li>Version 1.0 - 5.25.09: Initial Release. Included button to start deleting spam daily, and a button to delete spam immediately. Once the schedule was activated, it provided a button to stop the schedule. Shows current spam count and next scheduled delete.<\/li>\n<\/ul>","raw_excerpt":"Uses wp_cron to delete comments each day that are marked &quot;spam&quot; in the database.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/5638","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=5638"}],"author":[{"embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/brockangelo"}],"wp:attachment":[{"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=5638"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=5638"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=5638"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=5638"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=5638"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=5638"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}