Auto Publish on Type End

By Kuramoto Daisuke

0+ active installationsVersion 1.1.0

Automatically publishes or updates posts in the block editor as soon as you stop typing, with IME support, post-type control, and revision management.

Description

Auto Publish on Type End transforms the WordPress block editor into a seamless, distraction-free writing environment—similar to Google Keep or modern cloud note-taking apps. There is no need to repeatedly click “Save draft” or “Update” while writing; your content is saved or published automatically the moment you pause typing.

Designed for both real-time publishing and private personal note-taking, the plugin includes built-in safeguards to prevent broken Japanese/CJK input, database bloat, and multi-device overwrites.

Key Features

  • Zero-Click Auto Save & Publish: Automatically triggers saving or publishing after a customizable idle delay (default: 800 ms) once typing stops.
  • Target Post Types Selection: Choose exactly which post types (Posts, Pages, or custom post types) use real-time saving/publishing, leaving others untouched with standard WordPress behavior.
  • Post Revisions Control: Prevent database bloat caused by frequent saves by automatically disabling post revisions while real-time saving is active (or globally), while respecting existing WP_POST_REVISIONS settings in wp-config.php.
  • Flexible Publishing Modes:
    • Published posts only (Recommended): Immediately updates already published posts while keeping drafts, scheduled, and private posts in their current status.
    • Publish drafts immediately: Instantly publishes new posts and drafts as soon as you stop typing (scheduled and private statuses remain protected).
  • IME Composition Detection: Accurately detects Japanese, Chinese, and Korean (IME) character conversion so saves never interrupt mid-typing or break uncommitted text.
  • Optimistic Concurrency Control: Prevents accidental overwrites if the same post was modified more recently in another browser tab or device.
  • Offline Protection: Automatically pauses saving when your internet connection drops and resumes seamlessly once you are back online.

Installation

  1. Upload the auto-publish-on-type-end folder to the /wp-content/plugins/ directory, or install the plugin directly through the WordPress plugins screen.
  2. Activate the plugin through the Plugins screen in WordPress.
  3. Go to Settings > Auto Publish to enable the feature and configure your preferred post types, publish mode, typing idle delay, and revision control.

FAQ

Will frequent auto-saving bloat my WordPress database with hundreds of revisions?

No, if you enable the built-in revision control. Under Settings > Auto Publish, select “Disable revisions while Auto Save / Publish is enabled (Recommended)”. If you have already disabled revisions globally via define( 'WP_POST_REVISIONS', false ); in your wp-config.php file, the plugin automatically detects this and respects your configuration.

Can I use this only for blog posts or a custom post type, and exclude Pages?

Yes. In Settings > Auto Publish, use the Target Post Types checkboxes to select only the post types you want to automate. Unchecked post types (such as Pages) will continue to use the standard WordPress editor behavior.

Is it safe for Japanese or other IME-based languages?

Yes. The plugin monitors compositionstart and compositionend events inside the block editor canvas, ensuring auto-save is paused while you are converting characters.

Can I use this for private personal notes?

Yes. Set a post’s visibility to Private (or keep it as a Draft) and use the default “Published posts only” mode. Your private notes will update in real time across devices without ever becoming public.

What happens if I edit the same post on two devices at once?

The plugin checks the post’s last modified timestamp (post_modified_gmt) before every save. If a newer version exists on the server, the save is blocked with a warning notice so your newer edits are never overwritten.

Changelog

1.1.0

  • Added Target Post Types setting to choose which post types (Posts, Pages, custom post types) use real-time saving/publishing.
  • Added Post Revisions Control setting to dynamically disable post revisions while active (with automatic detection of WP_POST_REVISIONS in wp-config.php).
  • Scoped editor scripts, autosave interval overrides, and REST concurrency checks strictly to selected post types.

1.0.0

  • Initial release.
  • Real-time save/publish on typing end with configurable idle delay.
  • IME composition detection, offline protection, and optimistic concurrency control.