标记链接的默认主题计数缩放。
原型
default_topic_count_scale( int $count )
参数
$count
(int)
(Required)
带有该标签的帖子数量。
返回值
(int)
缩放计数。
源文件
路径:wp-includes/category-template.php
<?php
...
function default_topic_count_scale( $count ) {
return round(log10($count + 1) * 100);
}
...
?>
其他
英文文档:https://developer.wordpress.org/reference/functions/default_topic_count_scale/