New 24/7 monitoring and daily cloud backups now included in every Shield Pro plan.

Server

How to disable WordPress Heartbeat API

Heartbeat sends AJAX pulses from open browser tabs. On busy editorial teams or shops with many admin users, it adds constant PHP load. You can throttle or disable it selectively instead of turning it off everywhere.

Time: 10-20 minutes Level: Beginner

What this problem looks like

Heartbeat powers autosave, post locking, and some real-time admin features. Disabling it globally breaks collaborative editing and can affect WooCommerce product edit locking.

Best practice: disable on front end, throttle on admin, keep reasonable frequency in editor.

What Heartbeat does

WordPress Heartbeat posts to admin-ajax.php with action heartbeat. Each open wp-admin tab sends pulses. Ten editors with five tabs each creates significant background traffic.

Configure with Heartbeat Control plugin

  1. Install Heartbeat Control from wordpress.org.
  2. Settings → Heartbeat Control.
  3. Disable Heartbeat on front end.
  4. Set admin to 60 second interval or disable on dashboard only.
  5. Leave post editor at default or 30 seconds.

Code approach in functions.php

Child theme snippet to deregister Heartbeat on front end only:

php
add_action( 'init', function() {
	if ( ! is_admin() ) {
		wp_deregister_script( 'heartbeat' );
	}
}, 1 );

WooCommerce and stock management

Some inventory plugins use Heartbeat for live stock updates. Test product edits and concurrent editing after throttling. Re-enable admin Heartbeat if stock locks misbehave.

Do not disable Heartbeat in post editor on content-heavy sites without autosave alternatives. Editors can lose work.

Measure CPU impact

Check hosting CPU graphs before and after changes during business hours. Pair Heartbeat tuning with object cache and cron fixes for best results.

When to stop DIY and hire help

If CPU stays high after Heartbeat tuning, the cause is elsewhere: cron, traffic bots, or plugin queries. BugShield diagnoses server load on UK WordPress hosting.

FAQs

Is it safe to disable Heartbeat completely?

Not recommended site-wide. Disable on front end and throttle admin instead.

Does Heartbeat affect visitors?

Only if themes or plugins load Heartbeat on public pages. Most shops should deregister it on front end.

Will disabling Heartbeat break Gutenberg?

Autosave and block editor sync need Heartbeat in editor context. Keep editor enabled.

Can Heartbeat cause 503 errors?

On overloaded shared hosting, many simultaneous heartbeat requests contribute to PHP worker exhaustion.

Rather someone else fixed it?

Request a fix at a confirmed price. Named UK developer, secure Vault, direct chat.

Request a Fix