WordPress – Completely disable Heartbeat Control

wordpress blue and white and grey logo

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...  Skype 7.14 Released - MSI Download Link & Silent Install Instructions

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?

About A.J. Armstrong

Founder of TechyGeeksHome and Head Editor for over eight years! IT expert in multiple areas for over 21 years. Sharing experience and knowledge whenever possible! Making IT Happen.

View all posts by A.J. Armstrong

3 Comments on “WordPress – Completely disable Heartbeat Control”

Leave a Reply

Your email address will not be published.

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