wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



_nc › WordPress Function

Depuis2.7.0
Dépréciée2.9.0
_nc ( $single, $plural, $number, $domain = 'default' )
Paramètres: (4)
  • (string) $single The text to be used if the number is singular.
    Requis: Oui
  • (string) $plural The text to be used if the number is plural.
    Requis: Oui
  • (int) $number The number to compare against to use either the singular or plural form.
    Requis: Oui
  • (string) $domain Optional. Text domain. Unique identifier for retrieving translated strings. Default 'default'.
    Requis: Non
    Défaut: 'default'
Voir:
Retourne:
  • (string) The translated singular or plural form.
Défini(e) dans:
Codex:

Legacy version of _n(), which supports contexts.

Strips everything from the translation after the last bar.


Fonctions en relation: _n, _c, _nx, _

Source

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