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: '200012' }, success: function (data) { // todo sync comments count here! data have the counts }, error: function (i, b) { // todo } } ) }; };
appendFbScript(); }
appendFbScript();
})();