Add an custom 类以注释\\u author\\u链接。使用“get\\u comment\\u author\\u link”此函数获取注释作者链接时。
只需将此代码添加到函数中即可。php
// filter for get_comment_author_link
function custom_get_comment_author_link($content)
{
$extra_classes = \'text-decoration-none text-primary fw-bold mb-0\';
return preg_replace(\'/url/\', \'url \' . $extra_classes, $content);
}
add_filter(\'get_comment_author_link\', \'custom_get_comment_author_link\', 99);