_nc

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

WordPress Version: 4.6

/**
 * Legacy version of _n(), which supports contexts.
 *
 * Strips everything from the translation after the last bar.
 *
 * @since 2.7.0
 * @deprecated 3.0.0 Use _nx()
 * @see _nx()
 *
 * @param string $single The text to be used if the number is singular.
 * @param string $plural The text to be used if the number is plural.
 * @param int    $number The number to compare against to use either the singular or plural form.
 * @param string $domain Optional. Text domain. Unique identifier for retrieving translated strings.
 *                       Default 'default'.
 * @return string The translated singular or plural form.
 */
function _nc($single, $plural, $number, $domain = 'default')
{
    _deprecated_function(__FUNCTION__, '2.9.0', '_nx()');
    return before_last_bar(_n($single, $plural, $number, $domain));
}

WordPress Version: 4.5

/**
 * Legacy version of _n(), which supports contexts.
 *
 * Strips everything from the translation after the last bar.
 *
 * @since 2.7.0
 * @deprecated 3.0.0 Use _nx()
 * @see _nx()
 *
 * @param string $single The text to be used if the number is singular.
 * @param string $plural The text to be used if the number is plural.
 * @param int    $number The number to compare against to use either the singular or plural form.
 * @param string $domain Optional. Text domain. Unique identifier for retrieving translated strings.
 *                       Default 'default'.
 * @return string The translated singular or plural form.
 */
function _nc($single, $plural, $number, $domain = 'default')
{
    _deprecated_function(__FUNCTION__, '2.9', '_nx()');
    return before_last_bar(_n($single, $plural, $number, $domain));
}

WordPress Version: 4.4

/**
 * A version of _n(), which supports contexts.
 * Strips everything from the translation after the last bar.
 *
 * @since 2.7.0
 * @deprecated 3.0.0 Use _nx()
 * @see _nx()
 */
function _nc($single, $plural, $number, $domain = 'default')
{
    _deprecated_function(__FUNCTION__, '2.9', '_nx()');
    return before_last_bar(_n($single, $plural, $number, $domain));
}

WordPress Version: 3.7

/**
 * A version of _n(), which supports contexts.
 * Strips everything from the translation after the last bar.
 *
 * @since 2.7.0
 * @deprecated 3.0.0
 * @deprecated Use _nx()
 * @see _nx()
 * @see _n() For parameters.
 * @see _c() For parameters. _c() is deprecated.
 *
 */
function _nc($single, $plural, $number, $domain = 'default')
{
    _deprecated_function(__FUNCTION__, '2.9', '_nx()');
    return before_last_bar(_n($single, $plural, $number, $domain));
}