_nc


_nc ( $single, $plural, $number, $domain = 'default' )

Parameters:
  • (string) single The text to be used if the number is singular.
  • (string) plural The text to be used if the number is plural.
  • (int) number The number to compare against to use either the singular or plural form.
  • (string) domain Optional. Text domain. Unique identifier for retrieving translated strings. Default 'default'.
See:
Returns:
  • (string) The translated singular or plural form.
Defined at:

Description

Legacy version of _n(), which supports contexts.Strips everything from the translation after the last bar.

Related Functions

_n, _c, _nx, _

Top Google Results

User discussions

wpseek mobile