You can stop WP creating revisions by adding the following to your wp-config.php:
define('WP_POST_REVISIONS', false );
You can replace false
with an integer if you just want to restrict the number a maximum number of revisions.
If you check the plugin directory you’ll find several that will clean up old revisions, such as this one.
You cannot turn off drafts. You can reduce the frequency of autosaves if you wish, but WP only keeps one autosave per post anyway:
define('AUTOSAVE_INTERVAL', 160 ); // seconds
Related Posts:
- Get page ID of page that is set as the posts page
- Are post ID’s reliable?
- Get current post id in functions.php
- get all posts ID from a category
- Get the current post ID as a variable in Javascript
- Is post ID number always incremental n+
- Are all ID’s used unique?
- $post->ID displays wrong ID
- At my posts archive page, outside the loop, get_the_id() returns the top most post’s ID
- Showing random content / pictures from earlier posts in a sticky post?
- Get the post_id of a new post
- get post id in while loops outputting page id
- How can I display a specific user’s first published post?
- Undefined variable post_id in custom quick edit coloumn
- Getting post id from wp_insert_post_data function?
- Does an article (post) id ever change?
- How to get the post’s parent ID?
- Can a page_id and a post_id be same?
- Is there a better, more efficient way to get the post id outside the loop?
- Getting current post ID in functions.php
- Buddypress activity id
- How blog page in WordPress works : blog page retrieve first post ID
- Post-ID in url differs from $post->ID
- Why is my Blog Page ID == First Post ID?
- current post with current author
- Is it possible to change post id for an already added menu item in WordPress?
- Get ALL post ID’s export list (Only id’s. Php or sql not important )
- How to get next post ID?
- Search results posts_orderby and ID
- Retrieve post ID from “querying” URL
- How to get a post’s content? [closed]
- obtain the author id given the post id
- How to get ID of the page included with get_page()?
- How to I retrieve the ID from the Posts page?
- Crazy Question – Updating Post ID
- Why I can not I use the variable outside my function?
- retrieve the oldest post id
- WP_Query custom field pass the post id
- Accessing Post ID Within Loop
- How do post IDs work in WordPress?
- Are post, page and category IDs unique to each other?
- The loop starting at a certain ID
- linking to post outside the loop
- Widget to show posts in the sidebar basing on its IDs
- Get a post’s ID
- Making posts permalinks consistent numbers
- How to get post id of last approved comment?
- How to get the post id (of the parent custom custom type) in a loop inside a widget?
- Get post slug and match with menu item slug to change css
- WordPress Post ids big increment
- Reuse old post ID for new post after deleting post
- Get post attachment with post id
- How can i take all ids from untrash_post action?
- How do I apply a wordpress function to something with no ID inside an archive page?
- Get from the dashboard the ID of the current post being edited
- Only get post_id [duplicate]
- Surrogate ID for posts, is there an alternative field in the posts table?
- Is it possible to have dynamic post id # in add_menu_page()?
- Using Post ID and Page ID in same function
- Custom post page has attributes of latest post [closed]
- Can I get custom post items in select box (dropdown)
- What is $post->ID
- View post with specific category id and name which I selected in the backend (drop-down option)
- How to get post ID after removing that post?
- How To Disable (or Remove) “All Posts, Published, and Trash” in Dashboard Posts
- Post/Page Publish/Update button not clickable once I make an edit
- Get title of post without using the_title();
- $post->ID not working
- Is it possible to show a different WP menu when using password protected pages?
- Redirect before post page
- Fetch posts from current week (Sunday to Saturday)
- Using radio button meta data from a custom meta box
- Add a class to post title if a link ends with a certain extension
- Admin Notices don’t display on the admin screen for certain post
- filter RSS feed in URL
- get_adjacent_post by language
- Count number of posts of current month
- How to get post body look same as my visual editor?
- How to display posts on custom page without declaring a posts page in reading settings?
- What will be the best caching system for wordpress blog which has more than one million blog posts? [closed]
- HTML Inside of Shortcode Breaks Shortcode Output
- Organization of time insensitive content
- How to remove the icons corresponding to “by” (author) and “date” from posts?
- long-title posts do not want published
- Automatically select template based on query string for New Posts
- how to fetch posts from Api in chunks or parts?
- if CPT content is empty then
- How to get all posts in gallery post format template
- Append a random string to a post permalink
- Posts in Page – How to customize the URL?
- Next/Prev category post in same button
- Show category post with excerpt text
- WordPress rewrite url help needed
- Permalink of some posts change
- Authors can edit all posts, except when an owner is specified?
- Formatting error while publishing theblog from Microsoft Word
- Create post from form with image
- WordPress 3.2 – Problem with WYSIWYG editors in a custom post type?
- query_posts different amount of posts per page [duplicate]
- Dynamic Menu Item