wp_get_word_count_type() – Retrieves the word count type based on the locale.

You appear to be a bot. Output may be restricted

Description

Retrieves the word count type based on the locale.

Usage

$string = wp_get_word_count_type();

Parameters

Returns

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

Source

File name: wordpress/wp-includes/l10n.php


Lines:

1 to 11 of 11
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();
}
 

 View on GitHub View on Trac