You mentioned:
Is there a way, to do that from within a plugin or a themes functions.php?
You may want to try the following code. Just place it inside your theme’s functions.php file. Using it, you do NOT have to alter the wp-config.php file.
define('WP_POST_REVISIONS', false);
function disable_autosave() {
wp_deregister_script('autosave');
}
add_action('wp_print_scripts', 'disable_autosave');
Related Posts:
- Callback for wp.autosave.server.triggerSave();
- Adding a cancel button to edit post screen
- Custom post preview without saving
- What is the use of to_ping and pinged column?
- SQL Query for getting all posts in their latest revised state
- Listen to Post action
- Export WordPress Posts and Meta Information in CSV format
- How to add post count to wp_nav_menu?
- Posting From Apple Aperture?
- how to show all post in my page-grid.php template page
- How to add padding between posts
- eBooks download website, page or post?
- Remove whitespace at the end of posts?
- Add few specific post ids to wp_query
- How can I make existing custom fields easier to edit/add in my theme?
- Code Blocks with WYSIWYG in blog post
- What Can I Use To Add A Custom Button Between Publish button and Move To Trash?
- generate unique slug while inserting post
- Add filter-by-tag in the all posts admin console page
- Can I hide a specific post from latest posts page?
- How to show post(excerpt) from specific category on wp page?
- get posts and postmetas in assoc array
- user contributed content as custom post types
- Is 30 posts/sec considered slow for wp_delete_post?
- How to load a different header based on post format?
- Get all images out of the posts content
- How to Use PHP Code In-Page?
- Add scripts on custom post add/edit pages Not Working
- Getting current post ID in functions.php
- Understand post type
- Getting content from a single *page* of a post
- How can I show wordpress posts based on author?
- Remove certain post-formats from showing in blog?
- Avoid duplicate post from same Taxonomy
- Email Post Attachment on wp_insert_post Action
- Can I divide the pages into categories?
- Are private posts visible to search engines?
- Setting posts_per_page for taxonomy term template
- Change post order random through out the entire WordPress
- Posts gathered from WPEMatico feeds are being mixed in different languages. Polylang is used for language separation
- Turn On Comments On Custom Post Types in Directory Theme
- Automatically attach image to post if they have the same title
- Shortcode and whitespace formatting problem
- Using wp_list_pages() after calling query_posts()
- Delete pubished and unpublished posts with wp_delete_post?
- How to remove in-line style of WordPress’s post content only?
- How can I add content to a post that only shows in single-post mode?
- How to Get Posts, Including Private Ones?
- Proper way of establishing custom landing pages in WordPress
- Get post meta retrieving wrong value
- How safe is it to delete old posts edits to save database space?
- If contributor has published 2 or more posts then show otherwise hide
- Prevent posts with certain post_meta to be edited
- How to get different Related Posts
- How to Assign / Move all Deleted post to a category
- Using wp-cli and delete everypost first image
- Assigning Two Different Post Dates For Single Post
- Show posts by quarter
- Inserting an example of the last 3 post on to the homepage
- Make ‘blog’ page show content as well as posts underneath it
- how to get day month and year from wp_post_object?
- Using Posts Like a Page
- Pagination for normal (standard) posts on a page with a custom loop?
- Sidebar limiting to 10 posts?
- Attachment image single page
- Display content between two dates?
- How to associate a custom taxonomy to a post multiple times
- Post date automatically +100 years into the future
- Can I show category name in url for only one of my categories?
- How to let a user create a post by submitting a POST form?
- Featured image error after importing blog posts
- How to fix wordpress blog post error? Can anyone help to fix this issue?
- How do I remove all links from all my posts at once?
- Query prints posts without specific categories
- Display Updated Date Instead of Published Date
- Disable pagination in posts and pages
- wpautop filter off for pages but on for posts
- post categories – how to show only categories with a specific parent id
- Creating a “category” of featured posts
- How do I create a ‘selection’ criteria list’ that will then dictate which posts are generated when the user presses search?
- Post URL duplication adds numerical value
- Is it possible to display QUICK EDIT as default for all posts in wp-admin/edit.php page?
- get “read more” with custom DB query like you would with WP Query
- SQL query to remove first image in all posts
- Create custom URL with different levels
- some posts being displayed as pages
- Body text disappearing in random posts
- Get part of a page url
- making a few sites in wordpress
- How to use wp_editor(); in functions.php then retrieve content in the template
- Add default content to post (for specific category)
- Displaying posts on Homepage
- Adding a time stamp on post view
- The post order is different for logged-in and non-logged-in users? [closed]
- Display one post randomly from category on home page
- Change a div background color on Post ID
- How to show all Posts Image, Title and 3 line description on main page?
- append $_GET parameters to post
- CSS code for “inserting a custom post divider” after each post
- Edit Page button is gone