函数原型
default_topic_count_scale( int $count ): int
函数描述
Default topic count scaling for tag links.
是否弃用
未弃用
函数参数
-
$count
int
Required - Number of posts with that tag.
函数返回值
int Scaled count.
函数位置
File: wp-includes/category-template.php.
函数源码
function default_topic_count_scale( $count ) {
return round( log10( $count + 1 ) * 100 );
}
源码链接
变更日志
| Version | Description |
|---|---|
| 2.9.0 | Introduced. |

