Definition:
function _nx($single, $plural, $number, $context, $domain = 'default') {}
A hybrid of _n() and _x(). It supports contexts and plurals.
Parameters
- $single
- $plural
- $number
- $context
- $domain
Defined filters
- ngettext_with_context
apply_filters( 'ngettext_with_context', $translation, $single, $plural, $number, $context, $domain )
Source code
function _nx($single, $plural, $number, $context, $domain = 'default') { $translations = &get_translations_for_domain( $domain ); $translation = $translations->translate_plural( $single, $plural, $number, $context ); return apply_filters( 'ngettext_with_context', $translation, $single, $plural, $number, $context, $domain ); }
4345
No comments yet... Be the first to leave a reply!