default_topic_count_scale

函式
default_topic_count_scale ( $count )
引數
  • (int) $count Number of posts with that tag.
    Required:
返回值
  • (int) Scaled count.
定義位置
相關方法
default_topic_count_textget_default_comment_status_default_wp_die_handlerdefault_password_nag_edit_userrestore_current_locale
引入
2.9.0
棄用
-

default_topic_count_scale: 這個函式返回標籤雲中顯示的主題數量的預設比例係數。

標籤連結的預設主題計數比例。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
function default_topic_count_scale( $count ) {
return round( log10( $count + 1 ) * 100 );
}
function default_topic_count_scale( $count ) { return round( log10( $count + 1 ) * 100 ); }
function default_topic_count_scale( $count ) {
	return round( log10( $count + 1 ) * 100 );
}

常見問題

FAQs
檢視更多 >