Plural_Forms::get

Advertisement

Summery Summery

Get the plural form for a number.

Syntax Syntax

Plural_Forms::get( int $num )

Description Description

Caches the value for repeated calls.

Parameters Parameters

$num

(int) (Required) Number to get plural form for.

Return Return

(int) Plural form value.

Source Source

File: wp-includes/pomo/plural-forms.php

	public function get( $num ) {
		if ( isset( $this->cache[ $num ] ) ) {
			return $this->cache[ $num ];
		}
		$this->cache[ $num ] = $this->execute( $num );
		return $this->cache[ $num ];
	}

Advertisement

Changelog Changelog

Changelog
Version Description
4.9.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.