add_action('init', 'stop_heartbeat', 1);\n function stop_heartbeat(){\n wp_deregister_script('heartbeat');\n }<\/pre><\/div>\n\n\n\nIt will disable the Heartbeat API. Now, check your website to see if the 503 Service Unavailable Error is gone or not. <\/p>\n\n\n\n
If the issue is gone, the API was the problem. But disabling it will altogether remove lots of useful functionalities of your website. So, instead we recommend you to slow down the heartbeat to make sure it does not cause problems. <\/p>\n\n\n\n
The easiest way to slow down the heartbeat is by using the Heartbeat Control plugin. It will provide you with full control over the heartbeat frequency of your website.<\/p>\n\n\n\n
But if the issue is not gone yet, the heartbeat API is not the problem. So, remove the code from your function.php<\/em> to continue.<\/p>\n\n\n\n<\/span>Increase Your Server\u2019s Resource<\/strong><\/span><\/h3>\n\n\n\nIf you are still getting 503 Service Unavailable Error in WordPress website, there is a good chance that it might be due to lack of server resources. Check out your Google Analytics page and if you are getting more traffic than usual, you are definitely due to short in resources. However, if you don\u2019t have extra traffic, your problem might be due to inadequate server memory.<\/p>\n\n\n\n
In any of such cases, you need to contact the hosting service provider.<\/p>\n","protected":false},"excerpt":{"rendered":"
Have you come across a white screen with a \u201c503 Service Unavailable\u201d error message on your WordPress website? This error can be a frustrating one for the new users as it may completely render your site offline without giving you a clear cause. There can be various reasons behind the 503 Service Unavailable Error. Here, […]<\/p>\n","protected":false},"author":772,"featured_media":34038,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"categories":[36,9],"tags":[],"class_list":["post-29161","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-beginners-guide","category-tips-and-tutorials"],"_links":{"self":[{"href":"https:\/\/hashthemes.com\/wp-json\/wp\/v2\/posts\/29161","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hashthemes.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hashthemes.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hashthemes.com\/wp-json\/wp\/v2\/users\/772"}],"replies":[{"embeddable":true,"href":"https:\/\/hashthemes.com\/wp-json\/wp\/v2\/comments?post=29161"}],"version-history":[{"count":0,"href":"https:\/\/hashthemes.com\/wp-json\/wp\/v2\/posts\/29161\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/hashthemes.com\/wp-json\/wp\/v2\/media\/34038"}],"wp:attachment":[{"href":"https:\/\/hashthemes.com\/wp-json\/wp\/v2\/media?parent=29161"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hashthemes.com\/wp-json\/wp\/v2\/categories?post=29161"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hashthemes.com\/wp-json\/wp\/v2\/tags?post=29161"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}