wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



default_topic_count_scale › WordPress Function

Depuis2.9.0
Dépréciéen/a
default_topic_count_scale ( $count )
Paramètres:
  • (int) $count Number of posts with that tag.
    Requis: Oui
Retourne:
  • (int) Scaled count.
Défini(e) dans:
Codex:

Default topic count scaling for tag links.



Source

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