MO::select_plural_form() WordPress Method

The MO::select_plural_form() method is used to select the appropriate plural form for a given word based on the number of items. This is useful for translating words like "1 hour" or "2 hours" into different languages.

MO::select_plural_form( int $count ) #


Parameters

$count

(int)(Required)


Top ↑

Return

(string)


Top ↑

Source

File: wp-includes/pomo/mo.php

		public function select_plural_form( $count ) {
			return $this->gettext_select_plural_form( $count );
		}

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.