wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



_nc › WordPress Function

Da2.7.0
Deprecato2.9.0
_nc ( $single, $plural, $number, $domain = 'default' )
Parametri: (4)
  • (string) $single The text to be used if the number is singular.
    Richiesto:
  • (string) $plural The text to be used if the number is plural.
    Richiesto:
  • (int) $number The number to compare against to use either the singular or plural form.
    Richiesto:
  • (string) $domain Optional. Text domain. Unique identifier for retrieving translated strings. Default 'default'.
    Richiesto: No
    Default: 'default'
Vedi:
Ritorna:
  • (string) The translated singular or plural form.
Definito a:
Codex:

Legacy version of _n(), which supports contexts.

Strips everything from the translation after the last bar.


Funzioni correlate: _n, _c, _nx, _

Sorgenti

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