Plural_Forms::__construct() WordPress Method
The Plural_Forms::__construct() method is used to construct a new Plural_Forms object. This object can be used to pluralize strings.
Plural_Forms::__construct( string $str ) #
Constructor.
Parameters
- $str
(string)(Required)Plural function (just the bit after
plural=
from Plural-Forms)
Source
File: wp-includes/pomo/plural-forms.php
public function __construct( $str ) { $this->parse( $str ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
4.9.0 | Introduced. |