在functions.php文件里面添加下面的代码就行了。
if(is_admin()) { function hcsem_cdn_callback($buffer) {return str_replace(‘googleapis.com‘, ‘useso.com‘, $buffer);} function hcsem_buffer_start() {ob_start("hcsem_cdn_callback");} function hcsem_buffer_end() {ob_end_flush();} add_action(‘init‘, ‘hcsem_buffer_start‘); add_action(‘shutdown‘, ‘hcsem_buffer_end‘); }
时间: 2024-11-13 10:07:10