__ngettext

The timeline below displays how wordpress function __ngettext has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 5.3

/**
 * Retrieve the plural or single form based on the amount.
 *
 * @since 1.2.0
 * @deprecated 2.8.0 Use _n()
 * @see _n()
 */
function __ngettext(...$args)
{
    // phpcs:ignore PHPCompatibility.FunctionNameRestrictions.ReservedFunctionNames.FunctionDoubleUnderscore
    _deprecated_function(__FUNCTION__, '2.8.0', '_n()');
    return _n(...$args);
}

WordPress Version: 4.6

/**
 * Retrieve the plural or single form based on the amount.
 *
 * @since 1.2.0
 * @deprecated 2.8.0 Use _n()
 * @see _n()
 */
function __ngettext()
{
    _deprecated_function(__FUNCTION__, '2.8.0', '_n()');
    $args = func_get_args();
    return call_user_func_array('_n', $args);
}

WordPress Version: 4.4

/**
 * Retrieve the plural or single form based on the amount.
 *
 * @since 1.2.0
 * @deprecated 2.8.0 Use _n()
 * @see _n()
 */
function __ngettext()
{
    _deprecated_function(__FUNCTION__, '2.8', '_n()');
    $args = func_get_args();
    return call_user_func_array('_n', $args);
}

WordPress Version: 3.7

/**
 * Retrieve the plural or single form based on the amount.
 *
 * @since 1.2.0
 * @deprecated 2.8.0
 * @deprecated Use _n()
 * @see _n()
 */
function __ngettext()
{
    _deprecated_function(__FUNCTION__, '2.8', '_n()');
    $args = func_get_args();
    return call_user_func_array('_n', $args);
}