WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru Купить персональные IPV4 и IPV6 прокси
функция не описана

Translations::select_plural_form() WP 1.0

Given the number of items, returns the 0-based index of the plural form to use

Here, in the base Translations class, the common logic for English is implemented:
0 if there is one element, 1 otherwise

This function should be overridden by the sub-classes. For example MO/PO can derive the logic from their headers.

Это метод класса: Translations

Хуков нет.


Null. Ничего.


$Translations = new Translations();
$var = $Translations->select_plural_form( $count );
$count(числоeger) (обязательный)
number of items

Код Translations::select plural form: wp-includes/pomo/translations.php WP 5.2.2

function select_plural_form( $count ) {
	return 1 == $count ? 0 : 1;