This should be placed in your wp-config.php
(and no where else):
define( 'AUTOSAVE_INTERVAL', 60*60*60*24*365 ); // Set autosave interval to 1x per year
define( 'EMPTY_TRASH_DAYS', 0 ); // Empty trash now: Zero days
define( 'WP_POST_REVISIONS', false ); // Do not save andy revisions
Related Posts:
- Enable revisions for custom post type
- Storing revisions of metadata for custom post type
- Per Post Type Revision Numbers
- Post revisions don’t save or show up only for custom post types
- WordPress 4.4+ : How to revision CPT + metadata
- Why is wp_is_post_revision always false?
- Disable revisions for a specific post type only?
- Enabled Revisions to existing custom post type not working WordPress
- wp-types – How to allow custom fields to be saved in the revision
- Saving repeated option values in a custom query
- How do I get the intended post type of a revision post?
- Make metabox of custom post type fully autosave- and bulk-/quick-edit compatible
- WP Storing postmeta into revisions
- Only keep the First and Last Revision of a post
- Post author for revision not being set on update/insert
- Assign category a default post type
- Show Post Revisions on front-end
- How to check for duplicate record before saving a Custom Post Type
- Too many revision when post status is changes [duplicate]
- WordPress not auto saving custom posts
- Highlighting wp_nav_menu() Ancestor Class w/o Children in Nav Structure?
- Is there a way to get N number of WYSIWYG editors in a custom post type?
- Create a ‘single’ page for a Custom Post Type
- Are custom post types lost when the theme is changed?
- How to customize post edit notices
- Forcing all posts associated with a custom post type to be private
- Creating multiple page URL without creating the pages in WordPress
- How to Removing fields from the Media Uploader/Gallery on a Custom Post Type Edit Page
- Include Custom Posts Type in Year/Month/Date Archive
- Possible to add another setting to ‘Front page displays’ setting for Custom Post Type
- Reason action hook won’t work with update_post_meta from frontend form? Alternative?
- if && problems with transition_post_status
- How to localize value of posts
- Change admin post thumbnail size for custom post type only
- Custom Post Type Query multiple Taxonomy Terms
- How to append element after thumbnail
- current-menu-item not working with custom post type
- Add 32×32 icon to custom post type index page
- Automaticly add slug to posts
- Filtering by Post Meta Custom Fields – Performance
- Filter post by current 2 differents users id
- Custom Post Type without an archive page
- How do I get array of types associated with a taxonomy?
- Custom template page with custom archives listing by user
- Copying existing posts after new post type has been added
- Unable to get post archive link
- wp_get_post_terms on custom post type with custom taxonomies returning an empty array
- How to call in Custom Post-Type Categories?
- get_category_parents for custom post type taxonomy
- register_post_type name character limit
- Are pages consuming more server resources than posts?
- Possible to add different google analytics in custom post type?
- Registering post type doesn’t show results on front-end
- How to do WP_Query with two meta fields with orderby clause
- Portfolio Page for Classic Posts
- next/previous links on custom post single a little screwy
- How to change custom post type position from backend
- Archive for a Taxonomy of a Custom Post type
- Get theme URL without printing result
- Including all post id’s of a custom post type into an array
- Display an authors post on a single page only when they are logged in
- Include php on a specific page template
- Create a custom post type for a photo post
- Linking to Post Types from wp-admin
- Shared terms between taxonomies
- Custom post type Shortcodes wordpress
- After creating Custom post type by user delete old one
- custom hierarchical taxonomy and custom post type list contains surplus posts
- Show category and tag link as a submenu under custom post type submenu
- How to add new post using a form to categories when categories are using as menu
- Custom wordpress loop
- adding read more link for custom post type
- Automatically add a character to field in edit post page
- Add the custom post term to the custom post title
- Display 3 recent posts from one taxonomy
- Query for bbPress replies to current topic?
- Translate website without duplicate custom post
- Archive Post Not Showing All Post
- Get an array of the number of post per year of a custom post type (WordPress)
- Add custom template ‘sub-page’ to Custom Post type?
- WordPress Custom Taxonomy – If not parent term
- Need folder for CPT templates for eg: single-{post_type}.php
- Add an array as post content dynamically
- pagination for a custom query
- Custom nav menu current item custom link problem
- How To Loop Through list with Custom Post Types
- redirect old post type url to new structure url
- Custom Post Type + Category archive
- Customizing a plugin function using a hook
- Changing custom post_type when publishing
- one get_posts to return a number of custom posts for each meta value
- Show custom post type in archive page by category
- How do I do this?: If custom post type exists, echo it, else do not
- WordPress custom post type post and category links 404
- Count of posts with meta_key filled in?
- Custom post type efficiency
- Choose custom post type template by category
- Query order by meta value force specific tag first
- How to add categories to a custom post type using wp_insert_post($new_post);
- Modify permalink of CPT archive to support two taxonomies