W3cubDocs

/WordPress

__ngettext( $args )

This function has been deprecated. Use _n() instead.

Retrieve the plural or single form based on the amount.

Description

See also

Source

File: wp-includes/deprecated.php

function __ngettext( ...$args ) { // phpcs:ignore PHPCompatibility.FunctionNameRestrictions.ReservedFunctionNames.FunctionDoubleUnderscore
	_deprecated_function( __FUNCTION__, '2.8.0', '_n()' );
	return _n( ...$args );
}

Changelog

Version Description
2.8.0 Use _n()
1.2.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/__ngettext