关注迷你日志公众号

Wordpress相对链接

Function代码

//相对链接,by minirizhi.com
if(!is_admin()){
       ob_start("nohttp");
     }
function nohttp($buffer){
    $buffer= str_replace(['https://minirizhi.com','https://img.minirizhi.com'],['//minirizhi.com','//img.minirizhi.com'], $buffer);
    return $buffer;
}
文章目录
扫码了解详情