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



wp_get_word_count_type › WordPress Function

Since6.2.0
已弃用n/a
wp_get_word_count_type ( 没有参数 )
返回:
  • (string) Locale-specific word count type. Possible values are `characters_excluding_spaces`, `characters_including_spaces`, or `words`. Defaults to `words`.
定义在:
文档:

Retrieves the word count type based on the locale.



源码

function wp_get_word_count_type() {
	global $wp_locale;

	if ( ! ( $wp_locale instanceof WP_Locale ) ) {
		// Default value of WP_Locale::get_word_count_type().
		return 'words';
	}

	return $wp_locale->get_word_count_type();
}