Warning: This function has been deprecated. Use _n() instead.
__ngettext() WordPress Function
__ngettext() is a function in WordPress that allows you to create messages for translation that contain different forms based on a number. For example, you might use it to create a message like "1 comment" or "10 comments" depending on the number of comments a post has.
__ngettext( $args ) #
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 ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
2.8.0 | Use _n() |
1.2.0 | Introduced. |