jQuery(document).ready(function($){wp.heartbeat.interval(15);wp.heartbeat.enqueue('gmember-online',true,false);$(document).on('heartbeat-tick.gmember-online',function(event,data,textStatus,jqXHR){if(data.hasOwnProperty('gmember-online')){$('#gmember-online').html(data['gmember-online']);};wp.heartbeat.enqueue('gmember-online',true,false);});}(jQuery));