我有下面的功能,但它实际上并没有改变在我的主题中调用它的站点标题。
function blog_filter($string, $show) {
if ( $show == "name" ) {
$string = str_replace(\'Blog\', \'<a href="www.blog.com">blog.com</a>\', $string);
}
return $string;
}
add_filter(\'bloginfo\', \'blog_filter\', 10, 2 );
有人知道为什么吗?非常感谢。