解决方案:
在functions.php里面添加如下代码:
function hc_cdn_callback($buffer) { return str_replace('googleapis.com', 'useso.com', $buffer); } function hc_buffer_start() { ob_start("hc_cdn_callback"); } function izt_buffer_end() { ob_end_flush(); } add_action('init', 'hc_buffer_start'); add_action('shutdown', 'hc_buffer_end');