Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: ngettext_with_context

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
244  *
245  */
246 function _nc( $single, $plural, $number, $domain = 'default' ) {
247      return before_last_bar( _n( $single, $plural, $number, $domain ) );
248 }
249
250 function _nx($single, $plural, $number, $context, $domain = 'default') {
251      $translations = &get_translations_for_domain( $domain );
252      $translation = $translations->translate_plural( $single, $plural, $number, $context );
253      return apply_filters( 'ngettext_with_context', $translation, $single, $plural, $number, $context, $domain );
254 }
255
256 /**
257  * @deprecated Use _n_noop()
258  */
259 function __ngettext_noop() {
260      _deprecated_function( __FUNCTION__, '2.8', '_n_noop()' );
261      $args = func_get_args();
262      return call_user_func_array('_n_noop', $args);