Plural_Forms::get( int $num )
Get the plural form for a number.
Description
Caches the value for repeated calls.
Parameters
- $num
-
(int) (Required) Number to get plural form for.
Return
(int) Plural form value.
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 ]; }
Changelog
Version | Description |
---|---|
4.9.0 | Introduced. |
© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/plural_forms/get