Why is admin ajax reloading my page

This is probably the new Heartbeat API. It is running in intervals from 15 to 60 seconds and offers a simple way to communicate with WordPress per AJAX in the background.

You can disable it in JavaScript with wp.heartbeat.stop(); and in PHP with remove_action( 'admin_init', 'wp_auth_check_load' ); (might not be enough on some pages).

Leave a Comment