WordPress – Completely disable Heartbeat Control


If you are having speed issues with your WordPress website then you may find that this is because of the the heartbeat control that is within the WordPress software. Running speed checks on your website like PingDom may reveal that your admin-ajax.php is taking ages to load.

So, what do you do about it?

It really depends on your own situation – if you have multiple administrators on your site that you will not want to disable this feature but you can stop it checking every 15 seconds and change it to 60 seconds by using Heartbeat Control plugin.

But like most blogging websites you are the only person making any changes to your own website, then you may want to consider disabling the ajax completely. To do this, you need to make a change to your functions.php file – so, please be careful, one wrong move and you can completely disable your site so don’t come crying to us if you do screw it up!!

In your WordPress Administrator Console, browse your way to Themes > Editor then select the Theme Functions (functions.php) file. This will bring up the file edit and you should now add the following code straight after the <?php part at the top of the text:

add_action( ‘init’, ‘stop_heartbeat’, 1 );
function stop_heartbeat() {

Click the Update File button underneath the text box and this will completely disable the ajax function on your website.

NOTE: If you are currrently using Heartbeat Control or any other heartbeat plugin – disable it and delete it before making any of the above changes or your site will crash.


We would love to hear your feedback on this guide and whether it has helped you or if you have any further suggestions or questions – just leave us a comment below.

Recommended...  Adobe Flash Player Released - MSI Download

How useful was this post?

Click on a star to rate it!

Average rating / 5. Vote count:

No votes so far! Be the first to rate this post.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?

3 thoughts on “WordPress – Completely disable Heartbeat Control”

  1. Can the heartbeat control plugin be used in any way to speed up the wordpress dashboard? IF so, what what you recommend for a rule?


Leave us a message...

This site uses Akismet to reduce spam. Learn how your comment data is processed.