wpseek.com
A WordPress-centric search engine for devs and theme authors



default_topic_count_scale › WordPress Function

Since2.9.0
Deprecatedn/a
default_topic_count_scale ( $count )
Parameters:
  • (int) $count Number of posts with that tag.
    Required: Yes
Returns:
  • (int) Scaled count.
Defined at:
Codex:

Default topic count scaling for tag links.



Source

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