{"id":322,"date":"2024-04-11T19:25:36","date_gmt":"2024-04-11T15:25:36","guid":{"rendered":"http:\/\/keksus.com\/?p=322"},"modified":"2025-01-05T11:11:45","modified_gmt":"2025-01-05T07:11:45","slug":"dpr","status":"publish","type":"post","link":"https:\/\/hostatto.com\/blog\/dpr.html","title":{"rendered":"Delete post revisions and disable revisions"},"content":{"rendered":"<p>This WordPress plugin allows you delete all post revisions and disable post revisions.<\/p>\n<p><strong>Usage:<\/strong><br \/>\n1. After activation plugin settings available on Del-Post-Rev settings page<br \/>\n2. To just delete the current post revisions, click the button \"Delete post revisions and Save\"<br \/>\n3. To disable revisions, check the checkbox \"Disable post revisions\"<\/p>\n<p><div class=\"btn-big\">\n\t\t\t\t<a style=\"background:#F39D77\" target=_self href=https:\/\/wordpress.org\/plugins\/del-post-rev\/>\n\t\t\t\tDownload<\/a>\n\t\t\t<\/div><br \/>\nThe SQL query that is used to delete post revisions:<\/p>\n<pre class=\"lang:default decode:true \" >$wpdb-&gt;query(\"\r\n     DELETE p,tr,pm \r\n     FROM $wpdb-&gt;posts p \r\n     LEFT JOIN $wpdb-&gt;term_relationships tr ON p.ID = tr.object_id \r\n     LEFT JOIN $wpdb-&gt;postmeta pm ON p.ID = pm.post_id \r\n     WHERE p.post_type = 'revision'\r\n\");   <\/pre>\n","protected":false},"excerpt":{"rendered":"<p>...<\/p>\n","protected":false},"author":1,"featured_media":197,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,54],"tags":[],"class_list":["post-322","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wordpress-plugins","category-wordpress"],"_links":{"self":[{"href":"https:\/\/hostatto.com\/blog\/wp-json\/wp\/v2\/posts\/322","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hostatto.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hostatto.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hostatto.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hostatto.com\/blog\/wp-json\/wp\/v2\/comments?post=322"}],"version-history":[{"count":0,"href":"https:\/\/hostatto.com\/blog\/wp-json\/wp\/v2\/posts\/322\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/hostatto.com\/blog\/wp-json\/wp\/v2\/media\/197"}],"wp:attachment":[{"href":"https:\/\/hostatto.com\/blog\/wp-json\/wp\/v2\/media?parent=322"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hostatto.com\/blog\/wp-json\/wp\/v2\/categories?post=322"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hostatto.com\/blog\/wp-json\/wp\/v2\/tags?post=322"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}