SOLVED: Found the solution. Trick is to disable the autosave. But take care to only do this on a non-ajax save.
add_action( 'admin_enqueue_scripts', 'my_admin_enqueue_scripts' );
function my_admin_enqueue_scripts() {
if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) return false; // don't disable if it is an auto-autosave
if ( 'POST_TYPE' == get_post_type() ){
wp_dequeue_script( 'autosave' );
}
}
Hope this helps someone.
Related Posts:
- How to unpublish a page and still keep a draft?
- Visual Studio SignTool.exe Not Found
- How can I set a draft page as parent without publishing?
- Display a post’s publish date from 2112
- Does blocking xmlrpc.php affect pinging update services like pingomatic
- WordPress plugin to publish to multiple remote WordPress blogs
- I can’t preview post’s change once they are published
- WordPress prompt checklist before publish?
- Publish post when edit post form submitted with enter/return pressed on keyboard
- Check before publishing, if already exist post with current custom field value
- How to make scheduled post preview visible to anyone?
- Scheduled Posts and wp-cron – Why don’t scheduled posts publish if too old?
- Why does publish_{custom-post-type} fire on update?
- Show recent published posts
- What Can I Use To Add A Custom Button Between Publish button and Move To Trash?
- Is there a way to know if a post has been published through XML-RPC?
- get_terms on save_post hook
- Save and Publish button not working after installing SSL
- How can I create custom button in post.php
- Disable “preview changes” button
- Can we have private drafts?
- Update post meta on bulk edit / update
- How to modify Publish metabox?
- Can’t schedule post for another time
- publish_post called too early
- Calling Different Custom Post Timestamps in a table
- Get publish post link?
- Controlled publishing in WordPress
- Change the text of the publish button to Save
- problem with publish date not always appearing [duplicate]
- What is happening to make my Update/Publish button disabled?
- I want to print a message in post ” After one month from publish date”
- What is the reason for the new_to_publish hook not working?
- After I publish a post where does it go
- Should you manually ping new WordPress posts?
- Authors should not publish
- How to add custom status to quick edit
- I need to modify drafts using custom data from database and then publish it
- How to show or hide a post based on meta_value selection?
- i am making text changes on my page show in preview not on live site, why? [closed]
- Is WordPress “publish” atomic?
- How to move post process to background
- How does redirect work when publish date changes and date in url changes?
- Gutenberg publish date datepicker
- How Google Indexer should only index published pages
- Publish and go to page [duplicate]
- Publish Post Action Not Working
- Is it normal for a scheduled post to say “Missed Schedule”
- Manage multiple wordpress installs (Best Practice)
- Showing the next post’s title, even if it’s an unpublished post
- Force Publish Future (Scheduled) Posts Immediately [duplicate]
- Can’t publish posts, Jetpack won’t connect, empty notification emails to my inbox [closed]
- Remove “minor-publishing” div from Publish admin metabox
- Edit the Publish Widget Options
- Default pages to be unpublished – possible?
- Duplicate post on publish
- How is it possible to use a very reduced version of WordPress?
- Problems in updating a self-developed plugin
- When i save or publish a post setting reset wp
- Best collection of code for your 'functions.php' file [closed]
- How to: Easily Move a WordPress Install from Development to Production?
- Is moving wp-config outside the web root really beneficial?
- Hide the fact a site is using WordPress?
- Objective Best Practices for Plugin Development? [closed]
- Organizing Code in your WordPress Theme's functions.php File?
- What does this PHP function code mean? [closed]
- similar of my posts in all over the internet sites and blogs [closed]
- When to use is_home() vs is_front_page()?
- Is there a flowchart for WordPress loading sequence?
- How to change the default registration email ? (plugin and/or non-plugin)
- Best collection of code for your .htaccess file [closed]
- MySQL Database User: Which Privileges are needed?
- Essential technical features for high-end WordPress web hosting? [closed]
- How to structure a plugin
- How to remove admin menu pages inserted by plugins?
- How to create a custom search for custom post type?
- Opinions and recommendations on the best barebones base theme [closed]
- How to put logs in WordPress
- How to filter post listing (in WP dashboard posts listing) using a custom field (search functionality)?
- Conditionally Loading JavaScript/CSS for Shortcodes
- What is your best practice to execute one-time scripts?
- How to get the Date Format and Time Format settings for use in my template?
- Database synchronization between dev/staging and production
- what is the correct way to compare dates in a WP query_posts meta_query
- Explanation of update_post_(meta/term)_cache
- How to implement a customizable free OpenID authentication?
- Should all plugins be encapsulated in a Class?
- Add validation and error handling when saving custom fields?
- Best way to eliminate xmlrpc.php?
- Nested meta_query with multiple relation keys
- How To Add Custom Form Fields To The User Profile Page?
- Add multiple custom fields to the general settings page
- What SQL Query to do a simple find and replace
- What Features would you Most Like to See Added to WordPress? [closed]
- Why have on every line
- Where are Additional CSS files stored
- How can I edit post data before it is saved?
- How do i best handle custom plugin page actions?
- add_action(), add_filter() before or after function
- is_plugin_active function doesn’t exist