Uses
| Uses | Description |
|---|---|
| wp-includes/pomo/plural-forms.php: Plural_Forms::execute() | Execute the plural form function. |
Get the plural form for a number.
Caches the value for repeated calls.
(int) (Required) Number to get plural form for.
(int) Plural form value.
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 ];
} | Version | Description |
|---|---|
| 4.9.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/plural_forms/get