CPTUI – only skip ajax requests for WP heartbeats

mgibbs189

{{gist file=”custom-post-type-ui.php” lang=”php”}}
<?php

if ( defined( ‘DOING_AJAX’ ) && DOING_AJAX ) {
if ( isset( $_POST[‘action’] ) && ‘heartbeat’ == $_POST[‘action’] ) {
return;
}
}

{{/gist}}