Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

06/08/23, 00:21 wp_get_word_count_type() | Function | WordPress Developer Resources

wp_get_word_count_type() |
Function | WordPress Developer
Resources
Retrieves the word count type based on the locale.

Return
string Locale-specific word count type. Possible values are characters_excluding_spaces,
characters_including_spaces, or words. Defaults to words.

Top ↑

Source
File: wp-includes/l10n.php. View all references

function wp_get_word_count_type() {global $wp_locale;if ( ! ( $wp_locale instanceof WP_Locale

View on TracView on GitHub

Top ↑

https://developer.wordpress.org/reference/functions/wp_get_word_count_type/ 1/2
06/08/23, 00:21 wp_get_word_count_type() | Function | WordPress Developer Resources

Top ↑

Uses
Uses
Uses Description
WP_Locale::get_word_count_type()wp-includes/class- Retrieves the localized
wp-locale.php word count type.

Top ↑

Used By
Used By
Used By Description
wp_trim_words()wp-includes/formatting.php Trims text to a certain number
of words.

wp_just_in_time_script_localization()wp- Loads localized data on print


includes/script-loader.php rather than initialization.

Top ↑

Changelog
Changelog
Version Description
6.2.0 Introduced.

Top ↑

User Contributed Notes


https://developer.wordpress.org/reference/functions/wp_get_word_count_type/ 2/2

You might also like