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)


Top ↑

Source

File: wp-includes/pomo/plural-forms.php

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


Top ↑

Changelog

Changelog
VersionDescription
4.9.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.