_nc

Definition:
function _nc( $single, $plural, $number, $domain = 'default' ) {}

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

Parameters

  • $single
  • $plural
  • $number
  • $domain

Source code

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

	_deprecated_function( __FUNCTION__, '2.9', '_nx()' );

	return before_last_bar( _n( $single, $plural, $number, $domain ) );

}

4343

No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: