function update_comments_count(comment_data, comment_action) { jQuery.ajax({ type: 'GET', dataType: 'json', url: 'https://games-mag.de/wp-admin/admin-ajax.php', data: { action: 'clear_better_facebook_comments', post_id: '231154' }, success: function (data) { // todo sync comments count here! data have the counts }, error: function (i, b) { // todo } } ) }; };
appendFbScript(); }
appendFbScript();
})();