*Heartbeat (code of plugin)



Heartbeat Control


Je kan de heartbeat helemaal stoppen, als je de enige bent die aan de website werkt, met deze code:

add_action( 'init', 'stop_heartbeat', 1 );  function stop_heartbeat() {  wp_deregister_script('heartbeat');  }  

Let op: dit zijn de consequenties:

  • Auto save and revisions will not work. This means you need to press the “Save Draft” button manually to save your content.
  • In case if the connectivity is lost and you unknowingly pressed “Publish / Update / Save Draft” button then the content you made online will be lost.
  • You may not be able to see real-time statistics and information if any  of your installed plugin uses heartbeat API to update the content from server.