WordPress at a glance
function is not described

_nc() WP 2.7.0

Deprecated from version 3.0.0. It is no longer supported and can be removed in future releases. Use _nx() instead.

Legacy version of _n(), which supports contexts.

Strips everything from the translation after the last bar.

This is an internal function for using it by WP core itself. It's not recommended to use this function in your code.

No Hooks.

Return

String. The translated singular or plural form.

Usage

_nc( $single, $plural, $number, $domain );
$single(string) (required)
The text to be used if the number is singular.
$plural(string) (required)
The text to be used if the number is plural.
$number(int) (required)
The number to compare against to use either the singular or plural form.
$domain(string)
Text domain. Unique identifier for retrieving translated strings.
Default: 'default'

Notes

  • See: _nx()

Changelog

Since 2.7.0 Introduced.
Deprecated Since 3.0.0 Use _nx()

Code of _nc() WP 5.7

<?php
function _nc( $single, $plural, $number, $domain = 'default' ) {
	_deprecated_function( __FUNCTION__, '2.9.0', '_nx()' );
	return before_last_bar( _n( $single, $plural, $number, $domain ) );
}