Legacy version of _n() , which supports contexts.
Description
Strips everything from the translation after the last bar.
See also
Parameters
$singlestringrequired- The text to be used if the number is singular.
$pluralstringrequired- The text to be used if the number is plural.
$numberintrequired- The number to compare against to use either the singular or plural form.
$domainstringoptional- Text domain. Unique identifier for retrieving translated strings.
Default'default'.Default:
'default'
Source
function _nc( $single, $plural, $number, $domain = 'default' ) {
_deprecated_function( __FUNCTION__, '2.9.0', '_nx()' );
return before_last_bar( _n( $single, $plural, $number, $domain ) );
}
User Contributed Notes
You must log in before being able to contribute a note or feedback.