wpseek.com
WordPress开发者和主题制作者的搜索引擎



default_topic_count_scale › WordPress Function

Since2.9.0
已弃用n/a
default_topic_count_scale ( $count )
参数:
  • (int) $count Number of posts with that tag.
    Required: Yes
返回:
  • (int) Scaled count.
定义在:
文档:

Default topic count scaling for tag links.



源码

function default_topic_count_scale( $count ) {
	return round( log10( $count + 1 ) * 100 );
}