W3cubDocs

/WordPress

Plural_Forms::__construct( string $str )

Constructor.

Parameters

$strstringrequired
Plural function (just the bit after plural= from Plural-Forms)

Source

public function __construct( $str ) {
	$this->parse( $str );
}

Changelog

Version Description
4.9.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/plural_forms/__construct