On this page
Plural_Forms::__construct( string $str )
Constructor.
Parameters
$strstring Required-
Plural function (just the bit after
plural=from Plural-Forms)
Source
File: wp-includes/pomo/plural-forms.php. View all references
public function __construct( $str ) {
$this->parse( $str );
}
Related
Uses
| Uses | Description |
|---|---|
| Plural_Forms::parse() wp-includes/pomo/plural-forms.php | Parse a Plural-Forms string into tokens. |
Used By
| Used By | Description |
|---|---|
| Gettext_Translations::make_plural_form_function() wp-includes/pomo/translations.php | Makes a function, which will return the right translation index, according to the plural forms header |
Changelog
| Version | Description |
|---|---|
| 4.9.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/plural_forms/__construct