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
- Restrict custom post type to only site administrator role
- How to *remove* a parent theme page template from a child theme?
- get_the_term_list without links in 3.1
- Does Extending Multiple Nav_Menu_Walkers Allow Nested Menus?
- How to disable page delete
- Search multiple custom fields by using meta_query
- Walker class: Problems with understanding how walk() method can be called without error
- Broken pagination
- sanitize attachment filename
- Best way to integrate an existing PHP application into WordPress
- Custom Theme Want To Remove One Category From All Displays
- wp_query ‘s’ parameter does not work with custom post type
- Best way to start becoming a wordpress developer
- How Can I Expand the WordPress Customize window without any Plugin?
- Weird problem happening with custom taxonmy when creating/updating posts
- Author bio Social Links
- How do I add a new template to my site
- Woocommerce custom search
- How can I use a Tiny MCE editor in my custom Gutenberg block?
- REQUIRED: Could not find wp_link_pages. See: wp_link_pages by Theme Checker
- Stop wordpress from creating empty/null entries
- How do I change the element using a custom function?
- two search forms on the same page
- Create a custom admin panel
- How to replace settings in WordPress plugin from a theme
- Mobilepress fails to translate short codes
- How can I resolve a .htaccess internal server error setting up a WordPress multisite?
- Product page not found if product data is set Appointment Service
- delete post hook not being fired when deling in wordpress dashboard admin
- Replace an URL with an new URL which has a “?” in it
- Child Theme – Changing Header
- remove or hide Link Relationship (XFN) form Menus tab
- Changing ‘Add to cart’ button text and relink for some specific products [closed]
- ‘str_replace’ and ‘strtr’ not working inside plugin
- Add new post using a page inside the website
- Edit a custom admin page
- Show or hide lang=”ur” in main element
- trying to figure out how to use more that one image upload in the same section in theme customizer
- Cannot upload to S3 using CDN Sync Tool
- Social network plugins for WordPress [closed]
- Very Simple Geo targeting
- Consolidate ‘add-to-cart’ buttons into one ‘add-all-to-cart’ button